I have the following route defined:
map.resources :images, :only => [ :index, :new, :destroy ]
when I do a rake routes
I get the following:
image DELETE /images/:id(.:format) {:action=>"destroy", :controller=>"images"}
My problem is, I would like to use file names as my :id
including any extension. At the moment my ids are getting to the controller minus the extension. Is there any way I can customize the above map.resources to generate the following path:
image DELETE /images/:id {:action=>"destroy", :controller=>"images"}
i.e. not have the extension used as :format
?