- No record exists: Creates a new record with values matching those of the object attributes.
- A record does exist: Updates the record with values matching those of the object attributes.
Source Code
# File active_record/base.rb, line 1971 def save create_or_update end
<code/>and<pre/>for code samples.