semantic_form_for @whatever, :url => whatever_url
產生一個從
method="post"
我需要它來放,我已經嘗試過:
semantic_form_for @whatever, :url => whatever_url, :html => {:method => "put"}
和
semantic_form_for @whatever, :url => whatever_url, :html => {:method => :put}
和
semantic_form_for @whatever, :url => whatever_url, :html_args => {:method => :put}
沒有效果。任何想法是如何完成的?
是@whatever已經在數據庫中存在的? – Heikki 2011-01-05 21:19:45
Heikki,不,不管是什麼新紀錄。 – Pablo 2011-01-07 09:54:24
你試過我的解決方案嗎?只想知道它是否有效。 – Lichtamberg 2011-01-13 23:12:59