I am using Formtastic and I have a simple boolean field. In my view, I have
<%= f.input :active, :label => "Enabled?", :as => :select, :include_blank => false, :collection => [ ["Yes", true], ["No", false] ] %><br />
It saves to the database just fine. But when it loads, it always shows the first value ("Yes").
What am I missing? It should default to "No" when the field is false.
Thanks for any tips.
EDIT
When I put the ["No", false] first, it works!
<%= f.input :active, :label => "Enabled?", :as => :select, :include_blank => false, :collection => [ ["No", false], ["Yes", true] ] %>
Why would that matter?????