Rails: form_for checkbox set to true or false whether the box is checked/unchecked
Rails will do this for you when your form is acting on an object, just leave all the extra stuff off the tag like so: <div class=”field”> <%= f.label “Get Email” %> <br /> <%= f.check_box :send_email %> <br /> </div> And it should all start working as you expect. The checkboxes will be ticked … Read more