How could one get at the session data from within the routing code
(config/routes.rb)?
I would like to make route mapping contingent upon session data.
-pachl
How could one get at the session data from within the routing code
(config/routes.rb)?
I would like to make route mapping contingent upon session data.
-pachl
On Wed, 2006-11-01 at 01:02 +0000, pachl wrote:
How could one get at the session data from within the routing code
(config/routes.rb)?I would like to make route mapping contingent upon session data.
Why not put <%= debug session %> into your view template to see the
values that the current session is dealing with?
Craig
On 10/31/06, Craig W. [email protected] wrote:
Craig
Pachl,
Perhaps you could right a routing extension plugin - look at the
excellent request_routing plugin here:
http://svn.vivabit.net/external/rubylibs/request_routing/
Also Jamis has recently blogged about routing here:
http://weblog.jamisbuck.org/2006/10/26/monkey-patching-rails-extending-routes-2
Hope this helps,
–
Zack C.
http://depixelate.com
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs