[Radiant] Can Sessions work when Radiant is run from gem?
Manik Juneja
mjuneja at gmail.com
Sat Sep 8 03:35:27 CDT 2007
Unfortunately, session :on does not enable session.
That's the way it has been implemented in rails.
<a href="http://dev.rubyonrails.org/ticket/9401">This patch</a> tries to
make session management intutive.
John W. Long wrote:
> David Piehler wrote:
>> Current => Radiant from full-source; No caching; Session turned on in
>> site_controller.rb
>>
>> Desired => Radiant from gem; Full caching; Session turned on in config
>> or extension
>
> You should be able to make an extension that does this. The activate and
> deactivate methods would look something like this:
>
> def activate
> SiteController.class_eval { session :on }
> end
>
> def deactivate
> SiteController.class_eval { session :off }
> end
>
> --
> John Long
> http://wiseheartdesign.com
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list