Chapter 3. Persisting Documents
Till now we have seen why Mongoid is so awesome and what documents are. In this chapter we will see how the documents are persisted on the disk. Some details we will learn about are as follows:
The various options to save documents
The compliance of ActiveModel with callbacks and validations
Nested attributes in Mongoid
Atomic persistence