Could not find generator mongoid:config
For Rails 4 you need Mongoid 4, since this version is not yet officially released you could use the master branch from github. Add this to your Gemfile:
gem 'mongoid', '~> 4.0.0.rc1', github: 'mongoid/mongoid'
Then run bundle install
After that ran successfully you can use
rails g mongoid:config
to generate a config file.
This works for me:
gem 'rails', '4.0.3'gem 'mongoid', github: 'mongoid/mongoid'gem 'bson_ext'
I believe the bson gem is no longer required. Here's what solved the issue for me.
Remove gem 'bson_ext'
from your Gemfile
You will have also have to rebundle bundle install
Than you should be able to run the config
Hope that helps.