Hi there, I''m working on a subclass of ActionController::Base which is implemented as a plugin. I need to store data in the superclass ''session'' attribute, just as I would normally do in a regular controller. For some unexplicable and unknown reason, the session object is not a Hash but an Array. That doesn''t make any sense... I don''t understand how the session object got converted as an Array...... I can''t find why, I''ve tried for a while and got out of options. The plugin can be downloaded from : svn://rubyforge.org/var/svn/actionflow To tet it, just create a basic application and a test controller withe the following code : class TestController < ActionFlow::Base protected start_step :init end_step :close view_step :init do #nothing for now... end end -- _____________________________ Luc Boudreau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi again ! I just realised that the problem is that sub-classes of ActionController::Base cannot directly use the session attribute of the super class. How can a subclass of ActionController::Base access the superclass CGI::Session object ? Luc Hi there, I''m working on a subclass of ActionController::Base which is implemented as a plugin. I need to store data in the superclass ''session'' attribute, just as I would normally do in a regular controller. For some unexplicable and unknown reason, the session object is not a Hash but an Array. That doesn''t make any sense... I don''t understand how the session object got converted as an Array...... I can''t find why, I''ve tried for a while and got out of options. The plugin can be downloaded from : svn://rubyforge.org/var/svn/actionflow To tet it, just create a basic application and a test controller withe the following code : class TestController < ActionFlow::Base protected start_step :init end_step :close view_step :init do #nothing for now... end end -- _____________________________ Luc Boudreau -- _____________________________ Luc Boudreau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---