Jeremy Mulvihill Mon Mar 18 11:43:40 -0400 2013

Subject: Updating a record with out all attributes

I have a contact table that stores all user information. On create I use validates_format_of to ensure the password entered by the user is strong enough. I then store a md5 hash of it using the before save method. On update I do not include the password attribute but the system is still preventing me form saving because it is validating the existing hashed password which does not adhere to the rules I set up for validates_format_of. Also my before save is performing a md5 on the already hashed password. I would like the update_attributes to ignore attributes I am not updating.