Forum: Ruby on Rails put variable in session each time any controller runs?

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.
Ce8b03e5750097942c58e12b46724312?d=identicon&s=25 Giles Bowkett (Guest)
on 2006-04-23 01:55
(Received via mailing list)
Hi -- well, that's what I'm trying to do. Does anyone know what the
best way to do it is? I have three controllers, each one has a hidden
tag, and I want each one to salt its respective tag with the name of
the action in effect, at the time that action runs, for every action
in the controller.

--
Giles Bowkett
http://www.gilesgoatboy.org
A4a8fefcbd2cd6d2370609a5e2a3a389?d=identicon&s=25 Rob Merrell (Guest)
on 2006-04-23 02:29
(Received via mailing list)
Giles,

You might want to check out using before or after filters.  The Agile
Dev
book has a really good section on them.

Rob
Ce8b03e5750097942c58e12b46724312?d=identicon&s=25 Giles Bowkett (Guest)
on 2006-04-23 02:50
(Received via mailing list)
Hi Rob -- that looks exactly right. Thanks! ^_^

On 4/22/06, Rob Merrell <robholio@gmail.com> wrote:
> Hi -- well, that's what I'm trying to do. Does anyone know what the
>  Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>


--
Giles Bowkett
http://www.gilesgoatboy.org
This topic is locked and can not be replied to.