I started making my first forms today and things seem smooth except...

The check_box field makes no sense to me at all. Here is the code it
produces:

<input type="hidden" class="hidden" name="person[is_active]" value="0"/
><input type="checkbox" class="checkbox" name="person[is_active]"
value="1" checked="checked" id="person_is_active"/><label
for="person_is_active">Is name?: </label>

That does make sense. The trouble is, no matter what the value of
"is_active" is for @person, the box is ALWAYS checked. I even tried
adding :boolean => @person.is_active to see if that would do it, but
it's still checked. It works when the checkbox isn't bound to a model,
but when it is I get this problem. To make sure I wasn't crazy I even
have the value of @person.is_active display at the top of the form.
True or false, the checkbox is always checked.

Is this a bug or am I just missing something ridiculously simple?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to