[Radiant] Access session hash in behaviours.

Saint Berry saintberry at gmail.com
Tue Aug 15 09:29:46 CDT 2006


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060816/b20a6ef8/attachment.html


More information about the Radiant mailing list