Gurpreet Gill
Gurpreet Gill

Reputation: 174

How i generate mongoid.yml file in ruby on rails

When i run this command "rails g mongoid:config" then show this error message

"Could not find generator mongoid:config"

How I can fix this issue? please help me...

I have added gem "mongoid" and gem "rspec" in my GemFile

Upvotes: 3

Views: 2995

Answers (1)

Debadatt
Debadatt

Reputation: 6015

Edit the GemFile as

gem 'mongoid', git: 'https://github.com/mongoid/mongoid.git'

then run bundle install

Upvotes: 12

Related Questions