rails2.3.3升级到3.0.7,`require': no such file to load -- script/../config/boot
ruby 1.9.2
rails 2.3.3 -> 3.0.7
ruby script/server 启动应用
出现错误:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- script/../config/boot (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/server:2:in `<main>'
解决方法:
编辑script/server文件
require File.dirname(__FILE__) + '/../config/boot'
改成
require File.expand_path('../../config/boot', __FILE__)