routes.rb

api.resources :friends, :controller => :friends, :only =>
[:list, :exists], :collection => {:list => :get, :ids => :get, :exists
=> :get}

here is my rake routes.

list_api_friends GET    /api/friends/list
{:controller=>"api/friends", :action=>"list"}

formatted_list_api_friends GET    /api/friends/
list.:format               {:controller=>"api/
friends", :action=>"list"}

this is the only accepted calls for controller => friends  action =>
list , so when calling

curl -X POST http://localhost/api/friends/list.xml should return
routing error but instead of that it returns the list as if was a GET
request...

any suggestions


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to