rails gems安装成功,但无法在我的应用程序中使用它们

时间:2011-04-18 16:34:36

标签: ruby-on-rails ruby-on-rails-3 rubygems gem

我干净地安装了rails 3.0.6。我的应用运行正常,但我无法使用rails 3未附带的所有宝石。所有这些都在宝石列表中。我也将它们放在Gemfile中并运行bundle installbundle update

例如,对于matthuhiggins-foreignerrake db:migrate,它会抱怨add_foreign_key未定义。

less我遇到了同样的问题:.css生成了.less

geokit-rails3:未知密钥:来源,

gem which geokit-rails3返回:/Library/Ruby/Gems/1.8/gems/geokit-rails3-0.1.3/lib/geokit-rails3.rb

gem environment返回: RubyGems环境:

- RUBYGEMS VERSION: 1.5.0
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-10
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /Users/administrator/.gem/ruby/1.8
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

我已经研究过这个问题很长一段时间了。请帮忙!谢谢!

1 个答案:

答案 0 :(得分:0)