2011-08-28 121 views
2

我是Ruby on Rails的新用戶,並且存在以下問題:rake db:migrateRuby on Rails - Ruby的新手幫助使用rake db:migrate

後,我捆綁安裝,以下出現:

$ bundle install  
Using rake (0.9.2)  
Using abstract (1.0.0)  
Using activesupport (3.0.9)  
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.9) 
Using erubis (2.6.6) 
Using rack (1.2.3) 
Using rack-mount (0.6.14) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.29) 
Using actionpack (3.0.9) 
Using mime-types (1.16) 
Using polyglot (0.3.2) 
Using treetop (1.4.10) 
Using mail (2.2.19) 
Using actionmailer (3.0.9) 
Using arel (2.0.10) 
Using activerecord (3.0.9) 
Using activeresource (3.0.9) 
Using bundler (1.0.18) 
Using rdoc (3.9.4) 
Using thor (0.14.6) 
Using railties (3.0.9) 
Using rails (3.0.9) 
Using sqlite3-ruby (1.2.5) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. 

然後,當我嘗試和rake db:migrate,我得到以下幾點:

$ rake db:migrate 
Could not find polyglot-0.3.2 in any of the sources 
Run `bundle install` to install missing gems. 

任何人有什麼建議嗎?謝謝。

我在紅寶石1.8.7和3.0.9軌道

+1

請確保您的Gemfile中的'gem'polyglot'沒有嵌套到任何組中,例如生產或測試 – ecoologic

回答

1

檢查在那裏的安裝:

gem list -d polyglot 

運行bundle exec來確保耙用什麼在你的Gemfile規定:

bundle exec rake db:migrate 
-2

雅..明顯的多寶石寶石不包括在你的寶石文件。 也嘗試做寶石安裝polyglot ... 希望它有幫助! bundle exec rake db:migrate可能也有幫助..

+0

Bundg將作爲ActionMailer的依賴項安裝 - >郵件 - > Treetop - > Polyglot。 – jdeseno