Forum: Ruby on Rails ActionController::Base's session attribute

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
722873c7787fcfac50a49ddc4a09353c?d=identicon&s=25 Luc Boudreau (Guest)
on 2007-04-26 17:55
(Received via mailing list)
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
722873c7787fcfac50a49ddc4a09353c?d=identicon&s=25 Luc Boudreau (Guest)
on 2007-04-26 18:19
(Received via mailing list)
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
This topic is locked and can not be replied to.