Warlock handleR
2008-Apr-12 21:56 UTC
cant find session user_id while using restful_authentication
Hi guys, I am using the restful_authentication gem for my logins after the user has logged in I see his user id in the session dump in the variable user_id but when i try to access it as session[''user_id''] i get a null value... can you tell me whats going wrong here??? -- 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-12 22:07 UTC
Re: cant find session user_id while using restful_authentication
On 12 Apr 2008, at 22:56, Warlock handleR wrote:> > Hi guys, > I am using the restful_authentication gem for my logins > after the user has logged in I see his user id in the session dump in > the variable user_id but when i try to access it as > session[''user_id''] i > get a null value... can you tell me whats going wrong here???Try session[:user_id] (which is not the same thing as session[''user_id'']) Fred> > -- > 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 -~----------~----~----~----~------~----~------~--~---
Warlock handleR
2008-Apr-12 22:20 UTC
Re: cant find session user_id while using restful_authentica
Frederick Cheung wrote:> On 12 Apr 2008, at 22:56, Warlock handleR wrote: > > Try session[:user_id] (which is not the same thing as > session[''user_id'']) > > FredYes this works.. awesome thnx... -- 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 -~----------~----~----~----~------~----~------~--~---