ruby on rails - Stop redirecting to sessions/new? -
I use before_filter: login_required
on a controller, and treats everything like that - A user login is bumped to the sessions / new but seeing that I am doing it on the root URL, I refrain from having a real redirect (not showing / session / new) in the user's browser bar Want to How would I tweak?
Determine where your login_required method is from, and change the location to redirect_to there if you are restful_authentication If you are using, I believe the login_required method is defined in /lib/authenticated_system.rb
Comments
Post a Comment