I have a collection check box
<%= f.collection_check_boxes :tag_ids, Tag.all, :id, :name %>
I wanted to style them in any of those http://ift.tt/U3rqp9
How would I add a class for that?
I've tried these so far:
<%= f.collection_check_boxes :tag_ids, Tag.all, :id, :name do |b| %>
<%= b.check_box(class: "squaredFour")%>
<%end%>
and
<%= f.collection_check_boxes :tag_ids, Tag.all, :id, :name, {:item_wrapper_class => 'squaredFour' %>
it doesn't seem to work. Anyone know a fix? Thanks
Aucun commentaire:
Enregistrer un commentaire