2013-08-02 56 views
3

在紅寶石mongoid.yml文件當我運行此命令"rails g mongoid:config" 則表明此錯誤消息如何我產生在軌道上

"Could not find generator mongoid:config" 

我怎樣才能解決這個問題?請幫我...

我在我的Gemfile

+0

做ü運行'束install'? – Santhosh

+0

是的,我運行這個命令 –

+0

謝謝@Debadatt在我的問題糾正 –

回答

12

編輯Gemfile中添加gem "mongoid"gem "rspec"作爲

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

然後運行bundle install

+0

非常感謝,先生,這是工作。 –