I want to have this exact named route that I can put in views:
<%= link_to publish_review_path(@review) %>
... I would like it to map to a path like this:
"/reviews/3456/publish"
... and then when that pattern is matched, have the following sent to the controller:
{
:controller => "reviews",
:action => "update",
:id => "3456",
:aasm_event => "publish"
}
How can I do this?
As a constraint, I need to be able to do this using
instea map.resources :reviews