Rails 3: Set a route as 'get' -


i have route as:

match 'api/v1/:id/:format/:date/(:type)', :controller => "xpto", :action => "api_xpto"

the goal make request outside. however, route not being set get.

how can make get?

change match get:

get 'api/v1/:id/:format/:date/(:type)', :controller => "xpto", :action => "api_xpto" 

or add :via option

match 'api/v1/:id/:format/:date/(:type)', :controller => "xpto", :action => "api_xpto", :via => :get 

Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -

c# - Binding attached property to IEnumerable -