Displaying 1 result from an estimated 1 matches for "user_en".
Did you mean:
userlen
2006 Jul 18
1
updating boolean field in model from check box value
hello
i am having a bit of trouble with updating the values of a boolean field
in my database/model given the value returned by a check box
i am generating the check box as follows:
check_box("user", "enabled")
which produces
<input checked="checked" id="user_enabled" name="user[enabled]"
type="checkbox" value="1" /><input name="user[enabled]" type="hidden"
value="0" />
no problems there - it is reading the value out of the model/database
and checking the box correctly
n.b. the...