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
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,
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,