0
Im a haml新手如何使用haml使輸入字段「只讀」?
我試圖弄清楚如何爲「id」製作html「輸入」字段,只讀使用haml。
的HTML,應該讀這樣的事情(不準確反射)
但只讀值永遠不會到來通過
%h2 Sections
= semantic_form_for @section do |f|
= f.inputs do
= f.input :id, :readonly => "true" <-----problem
= f.input :title
我失去了什麼