I am trying to output checkbox with hard coded checkbox value, so far I have coded
<%= form.collection_check_boxes(:study_type,['Option1','Option2'], :first, :first)%>
The output for checkbox label is first alphabet of respective checkbox. Any way to display full text value label.
Thanks for help.
Aucun commentaire:
Enregistrer un commentaire