Rails: #update_attribute vs #update_attributes
Please refer to update_attribute. On clicking show source you will get following code # File vendor/rails/activerecord/lib/active_record/base.rb, line 2614 2614: def update_attribute(name, value) 2615: send(name.to_s + ‘=’, value) 2616: save(false) 2617: end and now refer update_attributes and look at its code you get # File vendor/rails/activerecord/lib/active_record/base.rb, line 2621 2621: def update_attributes(attributes) 2622: self.attributes = attributes 2623: … Read more