我使用rails新建項目-d = postgresql創建了一個新項目。如果我再運行軌道服務器,我收到以下錯誤信息:Rails安裝無法找到active_model
C:/GemRepository/gems/actionpack-3.1.3/lib/action_dispatch.rb:34:in `require': cannot load such file -- active_model (LoadError)
from C:/GemRepository/gems/actionpack-3.1.3/lib/action_dispatch.rb:34:in `<top (required)>'
from C:/GemRepository/gems/railties-3.1.3/lib/rails/commands/server.rb:3:in `require'
from C:/GemRepository/gems/railties-3.1.3/lib/rails/commands/server.rb:3:in `<top (required)>'
from C:/GemRepository/gems/railties-3.1.3/lib/rails/commands.rb:48:in `require'
from C:/GemRepository/gems/railties-3.1.3/lib/rails/commands.rb:48:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
我也試過
gem which active_model
其返回
C:/GemRepository/gems/activemodel-3.1.1/lib/active_model.rb
請幫助我。
該gem文件聲明rails 3.1.3。是的,我已經多次運行捆綁包安裝和捆綁包更新。 –