I read some troubleshooting messages stored_location_forhere, but can't figure out how to figure this out, and am not sure how to troubleshoot.
I tried to delete my custom one after_sign_in_path_for, but that didn't work either. My location is never saved, although, as I understand it, after each session / page refresh, it must store the location. Do I need to do this as a filter manually?
def after_sign_in_path_for(resource)
stored_location_for(resource) ||
if resource.is_a?(Account)
add_quote_to_account(resource)
if resource.applications.any?
edit_application_path(resource.applications(true).last)
else
root_path
end
else
super
end
end
source
share