Greetings, I am new to act as autenticated and was wondering how i can check if the user has been logged in from their account. i would like to do this so i can show things a member can do in the main site (vote, comment, etc) thanks! -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2007-Jun-24 13:04 UTC
Re: howto make "logged_in?" accessible to other controllers? aaa
Hi Sarah, if you would like logged_in? accessible to your other controllers, you''ll need to add this method to your application_controller.rb. Next, you''ll need to add a before_filter that executes this method when one or more actions are invoked. Good luck, -Conrad On 6/24/07, sarah <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Greetings, > I am new to act as autenticated and was wondering how i can check if the > user has been logged in from their account. i would like to do this so > i can show things a member can do in the main site (vote, comment, etc) > > > thanks! > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2007-Jun-24 13:16 UTC
Re: howto make "logged_in?" accessible to other controllers? aaa
Hi Sarah, if you would like logged_in? accessible to your other controllers, you''ll need to add this method to your application_controller.rb. Next, you''ll need to add a before_filter that executes this method when one or more actions are invoked. Good luck, -Conrad On 6/24/07, sarah <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Greetings, > I am new to act as autenticated and was wondering how i can check if the > user has been logged in from their account. i would like to do this so > i can show things a member can do in the main site (vote, comment, etc) > > > thanks! > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---