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. # saves the location before loading each page so we can return to the # right page. I think this should work since that is how i got bash to recognize the newer version of ruby.


I got around this by removing :validatable.which isn't ideal, but was functional. I use redirect loop with devise after_sign_in_path_for link for my problem but it does not work for me. Back them up with references or personal experience. January 23, 2019 · 15.7k · marko klemetti. Asking for help, clarification, or responding to other answers. Devise_for :users, :controllers => { registrations: Provide details and share your research! Here i'm using devise gem for authentication. Not sure what else to. Unable to redirect from one page to other using devise.

Devise is giving me a pretty hard time. 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. January 23, 2019 · 15.7k · marko klemetti. Devise is giving me a pretty hard time. Making statements based on opinion; Back them up with references or personal experience. Please be sure to answer the question. I am making a mcqs type application for practice purpose. I use redirect loop with devise after_sign_in_path_for link for my problem but it does not work for me. Actually i am a newbie to rails. You can send users back to the page they actually wanted to see quite easily when you're using devise: