明明已经在 Gemfile 中添加了 mongoid Could not find generator mongoid:config.
Could not find generator mongoid:config.
解决了 将gem 'mongoid' 替换为 gem 'mongoid', '~> 4.0.0', :github => 'mongoid/mongoid'
gem 'mongoid'
gem 'mongoid', '~> 4.0.0', :github => 'mongoid/mongoid'