我正在使用窗口7。 我已将rails 2.0.2升级到rails 3.0.9,ruby为1.8.7。我在evironment.rb中已经改变了:
除非定义,否则RAILS_GEM_VERSION ='3.0.9'? RAILS_GEM_VERSION
仍然无法启动服务器。
RubyGems环境: - RUBYGEMS版本:1.7.2 - RUBY VERSION:1.8.7(2011-06-30 patchlevel 352)[i386-mingw32] - INSTALLATION DIRECTORY:C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE:C:/InstantRails-2.0-win/ruby/bin/ruby.exe - EXECUTABLE目录:C:/InstantRails-2.0-win/ruby/bin - RUBYGEMS PLATFORMS: - 红宝石 - x86-mingw32 - 创业板路径: - C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8 - C:/Users/SUKETA/.gem/ruby/1.8 - 创业板配置: - :update_sources =>真正 - :verbose =>真正 - :benchmark =>假 - :backtrace =>假 - :bulk_threshold => 1000 - :sources => [“http://gems.github.com”,“http://rubygems.org/”] - 远程来源: - http://gems.github.com - http://rubygems.org/
任何建议
答案 0 :(得分:0)
从rails 2.0.2迁移到Rails 3并不是一项简单的任务。为了给你一个想法,瑞安贝茨做了3次关于此的截屏。你可以在这里查询更多详情; http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
答案 1 :(得分:0)
也许它可以帮到你: http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
是完整指南的一部分,解释如何以正确的方式进行此迁移。
但根据http://weblog.rubyonrails.org/2010/9/4/ruby-on-rails-2-3-9-released(官方Rails博客),建议首先迁移到Rails 2.3.9