How to force the method for a formtastic form to be put?

Posted by J. Pablo Fernández on Stack Overflow See other posts from Stack Overflow or by J. Pablo Fernández
Published on 2011-01-05T20:15:50Z Indexed on 2011/01/06 1:53 UTC
Read the original article Hit count: 545

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about formtastic