我将rails从3更新到4并将ruby更新到版本2.我在运行更新后尝试运行rails。错误是什么?
/home/aravind/Documents/dev/ptl/config/application.rb:7:in `require': cannot load such file -- active_resource/railtie (LoadError)
from /home/aravind/Documents/dev/ptl/config/application.rb:7:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
from /usr/local/lib/ruby/gems/2I .0.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
答案 0 :(得分:1)
试试这个:
在aplication.rb
中评论此行:
require "active_resource/railtie"
如果你有,如果没有,我会删除我的答案,但这解决了我几天前的问题。