Rewriting url path element as parameter

Allan
2008-08-22T21:43:22Z

Hi,

I''d like to rewrite the url:

http://myapp.mycompany.com/project_name/some_action/id?...

to

http://myapp.mycompany.com/some_action/id?...&project=project_name

or map it somehow to the appropriate rails controller.

I''d prefer to do this without recourse to mod_rewrite, etc in the web
server and manage to handle this in my application. I couldn''t see any
examples in my googling though I do recall that I have seen some
routes dynamically added within a rails application setup.

Any ideas or pointers to examples?

Thanks,

Allan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---