2011-08-28 120 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