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内一类