[Radiant] Access session hash in behaviours.
Adrian Madrid
aemadrid at gmail.com
Tue Aug 15 10:46:08 CDT 2006
I'm kind of in the same boat that you are and one thing I have learned
is that you have access to the request object and the session with it.
But you have to uncomment line 4 in SiteController (session :off).
Hope it helps,
Adrian Madrid
On 8/15/06, Saint Berry <saintberry at gmail.com> wrote:
> Hey All,
>
> I have been having a little play around with behaviours trying to get a
> better feel for how things work. Specifically I am working on a login form
> behaviour using McCray's MalierBehaviour as a loose guide to see how things
> work.
>
> I face problems when trying to access the session hash to see if a user has
> been logged in successfully or not (undefined variable or method error).
>
> My guess is (and this could be way wrong) that I cannot access the session
> hash as I would in a controller and therefore I need to include part of the
> rails framework in the behaviour to allow me to do so. This line of code in
> the MalierBehaviour led me to think that
>
>
> class MailerTagError < StandardError; end
>
> although I must confess I am a little new to ruby and rails and don't quite
> get whats going on there.
>
> If anyone could point me in the correct direction it would be much
> appriciated.
>
> Cheers.
>
>
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>
--
Adrian Esteban Madrid
More information about the Radiant
mailing list