我想在我的Gemfile中使用最后一个版本的rails:gem 'rails', '3.0.0.beta3'
尝试启动服务器时出现此错误,您知道我如何解决此问题吗?
$rails s
/Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: activesupport(1.4.4 not = 3.0.0.beta) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems.rb:211:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:246:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:245:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:245:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:1056:in `gem'
from /usr/bin/rails:18
bundle install return Your bundle is complete!
宝石清单给我
activesupport (3.0.0.beta3, 2.3.5, 2.2.2, 1.4.4)
答案 0 :(得分:2)
好的,所以你需要activesupport 3.0.0.beta3,而它需要activesupport 3.0.0.beta。试试这个:
gem install activesupport -v 3.0.0.beta --pre