Re: [Rails] Re: how to change Root_path after user sign in ?
I am not understanding what you want to do! You want user log in your site twice?
2011/12/23 wei jack <lists@ruby-forum.com>
Gautam Pai, I think can't move authenticate_user to ProjectController
because I have other controllers actions which only registered user can
access.
Thiagocifani, Thanks for helping me figure out to solve my problem.
I tried.
after_sign_in_path - redirect to a path after user success signed in.
after_sign_out_path_for - redirect to a path after user signed out.
I want
Before user login, request localhost:3000.
it will bring user to welcome#index.
On welcome#index has a link go to sign in path.
After user success login. localhost:3000.
will bring user to projects#index and
during time user still signed_in, she/he can't access to welcome#index.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thiagocifani
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home