Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3.1 升级到rails 3.1.12后出现错误_Ruby On Rails 3.1 - Fatal编程技术网

Ruby on rails 3.1 升级到rails 3.1.12后出现错误

Ruby on rails 3.1 升级到rails 3.1.12后出现错误,ruby-on-rails-3.1,Ruby On Rails 3.1,我刚刚从rails 3.1.11升级到3.1.12。我使用的是ruby 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

我刚刚从rails 3.1.11升级到3.1.12。我使用的是ruby 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"
我的Gem文件在下面

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 gems。如果两者都被删除,应用程序将正常工作。 使用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"

确保您的Airbrake gem是最新的:我的Airbrake gem是最新的,即3.1.11,但这并不能解决我的问题。ThanksQuestion已更新