U need to have include restful auth statement in ur app.rb. Then u
will be able to acess current user I''d
Sent from my iPhone
On Oct 17, 2007, at 8:35 PM, Bob
<bobclewell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Is it possible to reference the current_user object that
> restful_authentication creates when you login, in a model?
>
> I''m trying to move some Find methods into my models, but any
reference
> to current_user returns "method not found" error... I tried
> User.current_user, but that also fails.
>
> Is it just not possible to have sessions references in your model?
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---