Flowdock
method

save!

Importance_1
v3.2.3 - Show latest stable - 0 notes - Class: ActiveResource::Base
save!() public

Saves the resource.

If the resource is new, it is created via POST, otherwise the existing resource is updated via PUT.

With save! validations always run. If any of them fail ActiveResource::ResourceInvalid gets raised, and nothing is POSTed to the remote system. See ActiveResource::Validations for more information.

There’s a series of callbacks associated with save!. If any of the before_* callbacks return false the action is cancelled and save! raises ActiveResource::ResourceInvalid.

Show source
Register or log in to add new notes.