# Restful\_auth undefied logged\_in?

**URL:** <https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546>\
**Category:** Rails\
**Created:** [April 20, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546 "2007-04-20T16:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [April 20, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546/1 "2007-04-20T16:06:54Z")

</div>

Hi there,

I’ve been using the RESTful Authentication plugin for a long time, and  
never had trouble with it. Now though with the latest version and Edge  
Rails (rev 6542), I get an (undefined method `logged\_in?’ for  
#\<#Class:0x36d5200:0x36d51d8\>) error when I call the logged\_in? method  
in authenticated\_system from any view. I’m not sure what the deal is.  
Has anyone run into this before?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [April 20, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546/2 "2007-04-20T16:12:19Z")

</div>

On 4/20/07, Guest [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi there,
> 
> I’ve been using the RESTful Authentication plugin for a long time, and  
> never had trouble with it. Now though with the latest version and Edge  
> Rails (rev 6542), I get an (undefined method `logged\_in?’ for  
> #\<#Class:0x36d5200:0x36d51d8\>) error when I call the logged\_in? method  
> in authenticated\_system from any view. I’m not sure what the deal is.  
> Has anyone run into this before?

That’s a controller method. The restful auth plugin provides access  
to the view with the helper\_method call.

[http://bs.techno-weenie.net/!source/2848/plugins/restful\_authentication/generators/authenticated/templates/authenticated\_system.rb#96](http://bs.techno-weenie.net/!source/2848/plugins/restful_authentication/generators/authenticated/templates/authenticated_system.rb#96)

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [April 20, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546/3 "2007-04-20T16:19:02Z")

</div>

Thanks for the reply Rick. Strange I used to be able to check logged\_in?  
right from application\_helper.
