I have used restful-authentication and I have “public” layout and a completely different “members” layout. When someone visits my root (defaults to public) how can I check if they are logged in and redirect them to the member’s section?
I have used restful-authentication and I have public layout and a completely different members
Share
RestfulAuthentication provides some conditional methods/helpers including one called
logged_in?. It returns true if the user is logged in.Check out the
authenticated_system.rbfile for the list of all available methods.