Custom extension in rails routes -
I want to prepare tracks for jeep files, for example from the following rest route:
How to Do I need to map routes.rb to allow routes for my controller instead of root files (instead of searching for / public files) for zip files?
If you have map.resources
in the config / routes .RB
So I think you already have the routes you want. How do I feel that you want to add custom mime type to controller like this:
Mime :: Type.register_alias "application / zip" ,: zip
< P> Then Do not Answer Format | Format.zip is also available in {...} end
request.format
Comments
Post a Comment