# Howto make "logged\_in?" accessible to other controllers? aaa

**URL:** <https://www.ruby-forum.com/t/howto-make-logged-in-accessible-to-other-controllers-aaa/107633>\
**Category:** Rails\
**Created:** [June 24, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/howto-make-logged-in-accessible-to-other-controllers-aaa/107633 "2007-06-24T14:54:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sarah](https://www.ruby-forum.com/u/sarah)\
**Post date:** [June 24, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/howto-make-logged-in-accessible-to-other-controllers-aaa/107633/1 "2007-06-24T14:54:19Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![sarah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sarah](https://www.ruby-forum.com/u/sarah)\
**Post date:** [June 24, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/howto-make-logged-in-accessible-to-other-controllers-aaa/107633/2 "2007-06-24T15:04:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sarah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sarah](https://www.ruby-forum.com/u/sarah)\
**Post date:** [June 24, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/howto-make-logged-in-accessible-to-other-controllers-aaa/107633/3 "2007-06-24T15:17:57Z")

</div>

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
