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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -