On Saturday, August 4, 2012 7:42:39 PM UTC+2, Ben Mills wrote:
>
> What about using a routing constraint for allowing the entire file
> extension?
>
> E.g. match "/download/:filename", :to => "downloads#download",
> :constraints => { :filename => /.+/ }
>
I haven't tried this, but i see no reason it should be a separate route. If
ressources :users
already match /users, /users.html, /users.xml, etc., why not to allow it
match /users.xml.zip as well?
- Alexey.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-core/-/2OZJ1_ljmbEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.