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?
See http://www.rubydoc.info/gems/formtastic/0.9.10/Formtastic/SemanticFormHelper and try:
<% semantic_form_for :whatever, @whatever :url => posts_path, :html => {:method => :put} do |f| %>
...
<% end %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With