public Method

Base.save!

Attempts to save the record, but instead of just returning false if it couldn’t happen, it raises a RecordNotSaved exception

Source Code

# File active_record/base.rb, line 1977
def save!
  create_or_update || raise(RecordNotSaved)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.