Ruby On Rails - Devise Redirect Back To The Original Location After Sign In Or Sign Up? - Stack Overflow
Computer ID5c1154bd90969
Ruby On Rails - Devise Redirect Back To The Original Location After Sign In Or Sign Up? - Stack Overflow. January 23, 2019 · 15.7k · marko klemetti. If we're on a devise page, we don't want.
Computer ID5c1154bd90969
But the browser (firefox) gave me this error : I'm having trouble with a small rsvp functionality. Here i'm using devise gem for authentication. Redirect to back or default in rails. You could do this by overriding the sessionscontroller, storing it, and then just call super. If true, the page would be redirect to my wanted page. Devise is giving me a pretty hard time. I've tried overriding registrationscontroller and i've tried adding an applicationscontroller function like : When i tried to create a new organization it said current password can't be blank, even when it wasn't. To learn more, see our tips on writing great.
Making statements based on opinion; I can't figure out why. Def after_sign_in_path_for(resource) params[:next] || super end Please be sure to answer the question. I got around this by removing :validatable.which isn't ideal, but was functional. I made a view under /app/views/devise/registrations called after_signup.html.erb. Thanks for contributing an answer to stack overflow! Not sure what else to. I'm having trouble with a small rsvp functionality. Back them up with references or personal experience. Devise is giving me a pretty hard time.