Model-update_attribute & update_attributes

@users = User.find(1) @users.update_attribute(:attribute_name,"attribute_value") and the later update_attributes updates a whole set of values in the model

@users = User.find(1)
Now the important differentiator of these two functions is that the first function update_attribute updates an attribute without running any of the validations mentioned.. So keep that in mind when you are using the update_attribute function, else at times you will find values you didn’t expect to be entered into the database found in them. — Happy Coding]]>