It was funny because I was thinking checkbox is different when I wrote
my reply but left it out anyways...

You have to specify what the default is and that should get you 1 or 0
or yes or no...

check_box("product", "published", {}, '1', '0')
or
check_box("puppy", "gooddog", {}, "yes", "no")

Btw the check_box form helper will great a hidden field anyway...
--~--~---------~--~----~------------~-------~--~----~
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