I know this is not RESTful, but so far I am trying to configure the api / v1 controller. Ideally, I would call it as follows:
site.com/api/v1/verify.xml
But right now I cannot get .xml to work. So far I have the following route:
map.namespace :api do |api|
api.connect ':controller/:action/:id'
end
I can do it /api/v1/verify, but I donβt think it uses the route above. For some reason, it still hits my path, even if it displays the correct page.
map.connect '*path', :controller => 'application', :action => 'redirect_main'
So:
1) how do I get .formatthere?
2) And how do I get him not to hit my route?
source
share