Flowdock
method

update_attribute

Importance_2
v3.2.1 - Show latest stable - 1 note - Class: ActiveResource::Base
update_attribute(name, value) public

Updates a single attribute and then saves the object.

Note: Unlike ActiveRecord::Base.update_attribute, this method is subject to normal validation routines as an update sends the whole body of the resource in the request. (See Validations).

As such, this method is equivalent to calling update_attributes with a single attribute/value pair.

If the saving fails because of a connection or remote service error, an exception will be raised. If saving fails because the resource is invalid then false will be returned.

Show source
Register or log in to add new notes.
May 15, 2013
0 thanks