[Rails] Redirecting without Plugins
I want to be redirected to the current page, after having logged in. I
searched google and only saw ways to do this using certain plugins like
devise.
Isn't there a simple Way to implement this path?
I start out with
def store_location
session[:return_to] = request.fullpath
end
and I think the only thing left is passing this path to my redirect_ to
code Line in the Sessions Controller, but "redirect_to store_location"
won't work.
If only Plugins will help, can I use Devise without deleting or
recreating my current User Model?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home