Ruby On Rails - Devise Redirect Back To The Original Location After Sign In Or Sign Up? - Stack Overflow

Ruby On Rails - Devise Redirect Back To The Original Location After Sign In Or Sign Up? - Stack Overflow. But the browser (firefox) gave me this error : I overrode after_sign_out_path_for(resource) and found out that stored_location_for(resource) is nil.


Devise is giving me a pretty hard time. If we're on a devise page, we don't want. Please be sure to answer the question. Private def after_sign_out_path_for(resource) stored_location_for(resource) || request.referrer || root_path end I've tried overriding registrationscontroller and i've tried adding an applicationscontroller function like : $ sudo gem install rails you can then rerun your rails command. Here i'm using devise gem for authentication. Asking for help, clarification, or responding to other answers. But without using controller my application is working well but i am enable to. If someone want to open page without login then it redirect to sign_in page and after signed in it back to the page which user try to open.

I'm having trouble with a small rsvp functionality. I tried adding what i believe is the path the rails to the path in.bash_profile. Asking for help, clarification, or responding to other answers. Provide details and share your research! I've tried overriding registrationscontroller and i've tried adding an applicationscontroller function like : But without using controller my application is working well but i am enable to. What happens if your user user cannot access a resource in your application? I'm having trouble with a small rsvp functionality. As colin explained above, in your routes.rb put. If true, the page would be redirect to my wanted page. Devise_for :users, :controllers => { registrations: