I am not understanding what you want to do! You want user log in your site
twice?


2011/12/23 wei jack <[email protected]>

> 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.
>
>


-- 
thiagocifani
http://thiagocifani.wordpress.com/
twitter.com/thiagocifani
del.icio.us/thiagocifani
<http://del.icio.us/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 [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.

Reply via email to