james.white138-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Oct-24 22:57 UTC
Session Variable in Application.rb
I''m having a problem referencing the session variable from a class within the application.rb file. undefined local variable or method `session'' for #<Turnrun: 0x2abc20195440 @runreport=[], @turnstotake="5"> I''m not sure what i''m doing wrong or why this error would occur...does anyone have any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 Oct 24, 11:57 pm, james.white...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> I''m having a problem referencing the session variable from a class > within the application.rb file. > > undefined local variable or method `session'' for #<Turnrun: > 0x2abc20195440 @runreport=[], @turnstotake="5"> > > I''m not sure what i''m doing wrong or why this error would occur...does > anyone have any ideas?Sounds like you''re calling session from an object other that the controller. That doesn''t work. showing a little more code might allow a more informative answer. 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---