ruby on rails - Is the user logged in? (restful-authentication) -


I have used authentic authentication and I have a "public" layout and a completely different "member" layout. When someone visits my root (default to public), how can I verify that they are logged in and redirect them to the member's section?

Resetify provides some conditional methods / assistants in which a called logged_in? This is true if the user is logged in. See the authenticated_system.rb file for a list of all available methods.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -