How to force the method for a formtastic form to be put?
- by J. Pablo Fernández
I have something like
semantic_form_for @whatever, :url => whatever_url
which generates a from with
method="post"
I need it to be put, I've already tried:
semantic_form_for @whatever, :url => whatever_url, :html => {:method => "put"}
and
semantic_form_for @whatever, :url => whatever_url, :html => {:method => :put}
and
semantic_form_for @whatever, :url => whatever_url, :html_args => {:method => :put}
with no effect. Any ideas how it's done?