I want do be able do update some values direct form the index view of my subscription Resource.
To do so I try the following code:
subscription_path(subscription, :method => :put)
The problem is, that this goes directs to the show action as if the method would be :get!
Thanks for your help!
Maechi
It sounds like you’re wanting to show a form for editing Subscriptions on the Subscriptions index page. Assuming that you have a
@subscriptionvariable in scope that represents an existing Subscription record you want to edit, you should be able to do:—which will submit a PUT request to your controller’s
updateaction.