Hello, I have the code:
<% form_for(@libation) do |f| %>
<%= f.radio_button :carbonated, true %> <%= f.label :carbonated, "Yes" %>
<%= f.radio_button :carbonated, false %> <%= f.label :carbonated, "No" %>
<% end %>
The carbonated column in db is tinyint. And when the above is run and I click "No" I get a big red box telling me:
1 error prohibited this libation from being saved There were problems with the following fields: * Carbonated can't be blank
Any ideas? -thanx