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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

