You can specify in routes.rb
map.resources :users, :collection=>{ :doSomething= > :get, :doSomethingAgain => :post }
You can specify more than one method
map.resources :users, :collection=>{ :doSomething= > [:get, :post], :doSomethingAgain => [:post, :put] }
source share