This potentially sounds like a bug. I'll try and take a look at it in the morning when I get in to work. Someone else reported a similar issue with radio_group to me this morning so I wonder if there's something I'm missing here. -- Yehuda
On Tue, Dec 16, 2008 at 10:55 PM, cult hero <[email protected]> wrote: > > 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? > > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
