Jonathan Viney
2006-Aug-06 12:24 UTC
[Rails] Can I strip a file suffix off a URL with routing?
I would like a route that strips of the suffix of a url before
determining the action. Eg:
http://mydomain.com/my_controller/my_action.pdf
Would map to: { :controller => ''my_controller'', :action
=> ''my_action'' }
Is this possible?
Thanks,
-Jonathan.
