Hi guys, We just built a new site on Ruby Rails 1.1.2 (we tried Rails 1.2 but we couldn''t seem to get to use the session-anyone has any experience with this)? Would love to hear what you guys think. The site is called www.justanger.com thanks, Bing -- 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 -~----------~----~----~----~------~----~------~--~---
Bing Tan wrote:> Hi guys, > > We just built a new site on Ruby Rails 1.1.2 (we tried Rails 1.2 but we > couldn''t seem to get to use the session-anyone has any experience with > this)? > > Would love to hear what you guys think. The site is called > www.justanger.com > > thanks, > > BingWhat do you mean you couldn''t use session ? -- 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 -~----------~----~----~----~------~----~------~--~---
Jamal Soueidan wrote:> Bing Tan wrote: >> Hi guys, >> >> We just built a new site on Ruby Rails 1.1.2 (we tried Rails 1.2 but we >> couldn''t seem to get to use the session-anyone has any experience with >> this)? >> >> Would love to hear what you guys think. The site is called >> www.justanger.com >> >> thanks, >> >> Bing > > > What do you mean you couldn''t use session ?Using the old version of rails, we use this line: session[:user] which works just fine. But in the new rails version, when we use this code the session is always returned with the nil value... -- 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 -~----------~----~----~----~------~----~------~--~---
Bing Tan wrote:> Jamal Soueidan wrote: >> Bing Tan wrote: >>> Hi guys, >>> >>> We just built a new site on Ruby Rails 1.1.2 (we tried Rails 1.2 but we >>> couldn''t seem to get to use the session-anyone has any experience with >>> this)? >>> >>> Would love to hear what you guys think. The site is called >>> www.justanger.com >>> >>> thanks, >>> >>> Bing >> >> >> What do you mean you couldn''t use session ? > > Using the old version of rails, we use this line: > > session[:user] which works just fine. > > But in the new rails version, when we use this code the session is > always returned with the nil value...I''m using Rails 1.2 and its working fine, try something like this session[:user] = ''testing'' then call it from another method @user = session[:user] and put this in the view <%=@user%> PS: why your topic Rails 2.0 ? its not out yet? -- 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 -~----------~----~----~----~------~----~------~--~---