I have a checkbox tag as follows:
<%= f.check_box :receive_offers %>

When I view source in the html, I see the value of the checkbox is "1",
with the normal hidden field value of "0".  However, after posting the
form and saving to the database, the Mysql column, which is a TinyInt,
is ALWAYS 0.

I've tried it with true/false values instead, and no luck.

Any ideas?

Thanks,
Blake Miller
-----------------------------
www.syntacticsugr.com

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to