I have a webform created in Rails that asks if someone has children or not? If I submit the form, it's able to get inserted into the db. When I edit the form, it doesn't show it ask selected.
For example, the field is
<%= f.select :have_children, [ ["Yes", 0"], ["No", 1] ] %>
Whenever I select "No" and then edit the form again, it shows this field as "Yes." In the db, it's saved as value 1. Is it because the form can't associate values 0 or 1 with "Yes" or "No"? Am I missing something in the form?