i want to remove last checkbox option from this loop. Any help is appreciatable.
- StandardSize.all.each do |s| = f.check_box :standard_sizes_id_in, {multiple: true}, s.id, nil = s.name
This is how i get the checkbox option,when i did inspect elemet. from here i want to remove 'custom size ' option(which is the last checkbox name). How to do so?
<input type="checkbox" value="1" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_1">S <input type="checkbox" value="2" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_2">M <input type="checkbox" value="3" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_3">L <input type="checkbox" value="4" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_4">XL <input type="checkbox" value="5" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_5">XXL <input type="checkbox" value="10" name="q[standard_sizes_id_in][]" id="q_standard_sizes_id_in_10">Custom Size
Aucun commentaire:
Enregistrer un commentaire