views:

27

answers:

1

Hi everybody,

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

+1  A: 
John Topley
I just want to update something from the overview page - I guess that this is not restful, so this might not be allowed... Thanks although
Markus
@Markus See my edited answer.
John Topley
Ah, ok I see your point... so I will do a form although there is only a button in it...! Thanks
Markus
Yes you need a `form_for` or a `remote_form_for`.
John Topley