Put variable in session each time any controller runs?


#1

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 B.
http://www.gilesgoatboy.org


#2

Giles,

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

Rob


#3

Hi Rob – that looks exactly right. Thanks! :slight_smile:

On 4/22/06, Rob M. removed_email_address@domain.invalid wrote:

Hi – well, that’s what I’m trying to do. Does anyone know what the
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Giles B.
http://www.gilesgoatboy.org