FireRaven
2006-Sep-05 23:10 UTC
using "session" method from a class other than a controller?
I''m relatively new to Rails, and am wondering if it''s possible to use the "session" method from a class that does not extend "ActionController::Base"? Can I just do a "require ''action_controller/???''" in order to use it? I would like to store some session information from a UserService class being called via the weborb plugin. Thanks in advance... Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Craig Jolicoeur
2007-Jan-23 22:15 UTC
Re: using "session" method from a class other than a control
I am wondering the same exact thing. Any answers for this? FireRaven wrote:> I''m relatively new to Rails, and am wondering if it''s possible to use > the "session" method from a class that does not extend > "ActionController::Base"? Can I just do a "require > ''action_controller/???''" in order to use it? I would like to store > some session information from a UserService class being called via the > weborb plugin. Thanks in advance... > > Martin-- 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 -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- problem installing webOrb => Plugin not found: "http://themidnightcoders.net:8089/svn/weborb"
- How does the ActionController class get loaded/accessed?
- help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base
- [WebOrb] Error: Send failed while I am trying to run Primitive Tests
- undefined method `each' for ***:Class PROBLEM