Yep..  I have done both. This is the output from my rake routes.

discard_contents_project POST   /projects/:id/discard_contents(.:format) 
{:controller=>"projects", :action=>"discard_contents"}

It seems like it should be a valid route...

I found it:  :method => :post. The method needed to be explicitly set 
since the route only allows the path if the request method is post.
-- 
Posted via http://www.ruby-forum.com/.

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