Hi guys, I posted an earlier thread regarding sessions using db:sessions:create. What Ive found it is that when i choose the "launch browser" option from the RadRails server tab, it works and uses the same session over and over, but when i launch an external browser outside of RadRails, on every page refresh the sessions table creates a new session. In RadRails, i get a reply from <%= @user.firstname %> but in an external browser i get this "You have a nil object when you didn''t expect it!The error occurred while evaluating nil.firstname" Can someone please explain to me why this is happening... thank thank thank you! -- 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 -~----------~----~----~----~------~----~------~--~---
On 12 Nov 2007, at 22:49, Serkan Serkan wrote:> > > Hi guys, I posted an earlier thread regarding sessions using > db:sessions:create. > What Ive found it is that when i choose the "launch browser" option > from > the RadRails server tab, it works and uses the same session over and > over, but when i launch an external browser outside of RadRails, on > every page refresh the sessions table creates a new session. > > In RadRails, i get a reply from <%= @user.firstname %> but in an > external browser i get this "You have a nil object when you didn''t > expect it!The error occurred while evaluating nil.firstname" > > Can someone please explain to me why this is happening... thank thank > thank you!Is your external browser not saving/allowing cookies ? Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
THATS IT! YOUR AMAZING FREDERICK! IT WAS MY FIREWALL BLOCKING COOKIES! THANK YOU GUYS! -- 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 -~----------~----~----~----~------~----~------~--~---