I created a custom RESTful action called "post". It appears in TransactionsController as a (public) method called post.
resources :transactions do member :post do post :post end end
I have a form configured as follows:
<form action="/transactions/25/post"> ... <input id="transaction_submit" commit="commit" type="submit" value="Post"> </form>
When I click the Publish button, my server receives:
POST "/transactions/25/post"
I expect this to call the "post" method in my TransactionController, but instead I get a routing error
ActionController::RoutingError (No route matches "/transactions/25/post"):
Any ideas? Thanks.
James
source share