instance method
update_attributes
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
update_attributes(attributes)
Updates all the attributes from the passed-in Hash and saves the record. If the object is invalid, the saving will fail and false will be returned.
Parameters
-
attributesreq
Source
# File activerecord/lib/active_record/base.rb, line 2674
def update_attributes(attributes)
with_transaction_returning_status(:update_attributes_inside_transaction, attributes)
end
Defined in activerecord/lib/active_record/base.rb line 2674
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base