我干净地安装了rails 3.0.6
。我的应用运行正常,但我无法使用rails 3
未附带的所有宝石。所有这些都在宝石列表中。我也将它们放在Gemfile
中并运行bundle install
和bundle update
。
例如,对于matthuhiggins-foreigner
:rake 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/
我已经研究过这个问题很长一段时间了。请帮忙!谢谢!