Installation

suggest change

First, add Mongoid to your Gemfile:

gem "mongoid", "~> 4.0.0"

Then run bundle install. gem install mongoid installs the gem on the machine, but the app will not load it unless it is in the Gemfile. ~> 4.0.0 is the Mongoid 4 series. Later Mongoid releases track newer Rails versions.

After installation, run the generator to create the config file:

$ rails g mongoid:config

which creates config/mongoid.yml.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents