Hi all, i am trying to access some acts_as_authenticated methods in my layout, but it appears to melfunction. "include AuthenticationSystem" was added to the application_controller. any help? -- 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 -~----------~----~----~----~------~----~------~--~---
rein.henrichs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-11 14:48 UTC
Re: ACTS_AS_AUTHENTICATED in Views
Questions like this are useless without the details. Which methods? How are you trying to access them? On Apr 11, 7:37 am, Elad Meidar <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > > i am trying to access some acts_as_authenticated methods in my layout, > but it appears to melfunction. > > "include AuthenticationSystem" was added to the application_controller. > > any help? > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Hi, AuthenticatedSystem mixed in controller methods is protected, however, you may use the following ugly hack to work around that: eg. @controller.send(:current_user) - Lourens On 2007/04/11, at 15:48, rein.henrichs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Questions like this are useless without the details. Which methods? > How are you trying to access them? > > On Apr 11, 7:37 am, Elad Meidar <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Hi all, >> >> i am trying to access some acts_as_authenticated methods in my >> layout, >> but it appears to melfunction. >> >> "include AuthenticationSystem" was added to the >> application_controller. >> >> any help? >> >> -- >> Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---