Is it possible to create routes that have the same URL yet map to a different action based on the HTTP method (or pseudo method)?
For example: map.resources :foo, :collection => { :purge => :get, :purge_them => :post } I'd like to use /foo/purge for both actions, and have the appropriate controller method called based on the HTTP request's method -like /foo does for create and index, amongst others. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---