Setting session variables in routes.rb

Hi,

I would like to be able to do some session specific stuff based on what
URL’s are coming through. I thought I could make use of routes.rb to
see which URL is coming through to then set some session variables for
the application. Is this possible?

Thanks,

Sam.

On Oct 1, 2006, at 5:45 PM, Sam D. wrote:

I would like to be able to do some session specific stuff based on
what
URL’s are coming through. I thought I could make use of routes.rb to
see which URL is coming through to then set some session variables for
the application. Is this possible?

I’m not sure about routes.rb, but a before filter in application.rb
would certainly be one place to do this.


– Tom M.

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