Displaying 2 results from an estimated 2 matches for "hewer".
Did you mean:
newer
2006 Jul 17
19
updating model
hello,
i am writing a simple user login system.
when registering a user account, i have two field:
password
password_confirmation
which are validated using
validates_presence_of
validates_confirmation_of
and these are then used to generate a password hash which is stored in
my database
when i want to update the record (without changing the password and
entering new values for password and
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"