Installation
suggest changeFirst, 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents