I have to serve rails generated zip files.
For example from the following REST route:
http://foo.com/controller/show/filename.zip
How i need to map routes.rb to allow the routing of zip files (instead searching for static files in /public) to my controller?
If you’ve set up your routes using the
map.resourcesinconfig/routes.rbthen I think you already have the routes you want. What I think you need is to add a custom mime type to you controller like this:Then
Also available in
request.format