dimanche 28 décembre 2014

Display check box as checked when false

The default functionality of the check_box_tag is to show it checked for true value hence the attribute "inactive" below would display as checked on true.



f.check_box :inactive


How can one have the opposite behaviour, i.e. show the checkbox checked when the value is false ?





Aucun commentaire:

Enregistrer un commentaire