1

我刚刚从 rails 3.1.11 升级到 3.1.12。我正在使用红宝石 1.9.3。使用rails s启动服务器后,出现以下错误

=> Booting WEBrick
=> Rails 3.1.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Uncaught exception: No such middleware to insert after: "ActionDispatch::ShowExceptions"

我的宝石文件在下面

source 'http://rubygems.org'
gem 'rails', '~> 3.1.12'
gem 'rake'
gem 'rack'
gem "haml"
gem "haml-rails"
gem 'mysql2'
gem 'airbrake'
gem 'newrelic_rpm'

问题在于 newrelic_rpm 和 airbrake gem。如果两者都被删除,则应用程序可以工作。使用 newrelic_rpm 我们会得到这个错误。

Uncaught exception: undefined local variable or method `establish_connection' for ActiveRecord::Base:Class

使用airbrake我们得到这个错误

Uncaught exception: No such middleware to insert after: "ActionDispatch::ShowExceptions"
4

0 回答 0