Brand new to Rails. How do I add a <li> wrapper to each checkbox / label element generated by the following code?
<%= f.collection_check_boxes :publish_to, [['YouTube'], ['Hulu'], ['Roku'], ['Owned Website'], ['Other']], :first, :first %>
The final outputted HTML would look like:
<li class="checkbox-wrap">
<label></label>
<input type="checkbox"/>
</li>
Thanks in advance!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire