The information stored and changed in
me variable will be consistent during the console runtime. It will be cleared after. So if you call
me the object information being returned is always the value you modified it to.
me.save! actually submits these changes to the database which makes it persistent.
You can cross check that by updating
me with any value you want and then run the rails command (e.g. for finding the user you updated) without using the
me variable. You should see the differences then.
If you do not
me.save! your changes, as soon as you close the console session, the variable is being freed / destroyed and thus your changes are lost.
You should also be able to cross check this via the ui by the way. If you update the note without
.save!, you shouldn’t see it in the web interface (no matter how hard and often you hit “refresh”).