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
Attempts to save the record, but instead of just returning false if it couldn’t happen, it raises a RecordNotSaved exception
# File active_record/base.rb, line 1977 def save! create_or_update || raise(RecordNotSaved) end
<code/>and<pre/>for code samples.