我正在使用Skeleton CSS 样板,它要求input
复选框成为label
正确样式的子标签:
<label class="example-send-yourself-copy">
<input type="checkbox">
<span class="label-body">Send a copy to yourself</span>
</label>
但是,Rails collection_check_boxes
FormBuilder 方法仅input
在label
.
<input id="movie_genre_ids_1" name="movie[genre_ids][]" type="checkbox">
<label for="movie_genre_ids_1">Action</label>
如何操作 FormBuilder 对象的模板?