Put variable in session each time any controller runs?

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

Giles,

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

Rob

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

On 4/22/06, Rob M. [email protected] wrote:

Hi – well, that’s what I’m trying to do. Does anyone know what the
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs