hi,
using map.resources i want an action to have both :get and :post http
verbs.

map.resources :tickets,
  :path_prefix => '/workflows,
  :collection => { :pending => [:get, :post],
    :download => :get }

here the pending action responds to post, i think the route was
overwritten.
I can use :any as the HTTP verb but i want the route to be more
explicit.
I am using rails 2.1.1.

when i try to access
'/workflows/tickets/pending' i get a Routing Error.
No route matches "/workflows/tickets/pending" with {:method=>:get}

Please Help

Thanks,
Deepak

--~--~---------~--~----~------------~-------~--~----~
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