0
我通過網絡搜索並找不到方法。到目前爲止,我曾嘗試:在check_box_tag中添加班級
<%= check_box_tag "course[location_ids][]", location.id, class: 'checkbox-inline'%>
這將輸出:
input type: "checkbox" name="course[location_ids][] id="course_location_ids_" value="1" checked="checked"
出於某種原因,它使一個檢查輸入。
<%= check_box_tag "course[location_ids][]", location.id, :class => 'checkbox-inline'%>
不一樣的第一個
如何添加一個check_box_tag內一類