我是Ruby on Rails的新用户,遇到问题: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.
有人有什么建议吗?感谢。
我使用的是ruby 1.8.7和rails 3.0.9
答案 0 :(得分:1)
检查它的安装位置:
gem list -d polyglot
运行bundle exec以确保rake使用gemfile中指定的内容:
bundle exec rake db:migrate
答案 1 :(得分:-2)
Ya ..显然,您的gem文件中不包含多语言gem。 也尝试做宝石安装多语言... 希望能帮助到你 ! 捆绑exec rake db:migrate也可能有帮助..