Hi all,
I use save on an ActiveRecord object to insert or update it. I expect
save to insert a new object in the database when I didn’t assign the
id to the object and update the object when I assigned an id to it.
That’s what I think the documentation tells me:
* 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.
Shouldn’t it update the record when the id already exists or have I
misunderstood how save works?
regards,
Stijn