I have just started to use devise for authentication, I have it kind of working but I would like it to
redirect_to a different url instead of
root_path after many hours of googling I haven’t managed to get this working a lot of the posts say to override the
after_sigin_in_path_for method in
ApplicationController, which I have but my test is still expecting to see “welcome firstname.lastname@example.org” when it should be yelling that
products_path does not exist meaning it is not redirecting after a login.
def after_sign_in_path_for(resource) products_path end