1
我使用Formtastic與Bootstrap formbuilder。我無法弄清楚如何添加多個輸入轉化爲對照組,因爲這樣的:在控制組組輸入,Formtastic-自舉
我順理成章的事情是做到以下幾點(我使用HAML):
= f.inputs do
= f.input :city, :input_html=>{:class=>'input-small'}, :label=>false, :placeholder=>'City'
= f.input :state, :input_html=>{:class=>'input-small'}, :label=>false, :placeholder=>'State'
= f.input :zip, :input_html=>{:class=>'input-small'}, :label=>false, :placeholder=>'Zip'
但是,這只是集團在給字段的控件。
我沒有看到這個文檔中任何事情,而谷歌並沒有幫助,所以儘管。任何人都可以幫忙嗎?