This project is archived and is in readonly mode.

#6724 new
Diego Plentz

impossible to disable Rack::Runtime

Reported by Diego Plentz | April 19th, 2011 @ 04:32 PM

Every time I try to disable Rack:Runtime I receive the same exception.

/Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.7/lib/action_dispatch/middleware/stack.rb:86:in `assert_index': No such middleware to insert before: "Rack::Runtime" (RuntimeError)
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.7/lib/action_dispatch/middleware/stack.rb:49:in `insert'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/configuration.rb:37:in `block in merge_into'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/configuration.rb:36:in `each'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/configuration.rb:36:in `merge_into'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:161:in `app'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application/finisher.rb:35:in `block in <module:Finisher>'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/initializable.rb:25:in `run'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/initializable.rb:50:in `block in run_initializers'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/initializable.rb:49:in `each'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/initializable.rb:49:in `run_initializers'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:134:in `initialize!'
from /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:77:in `method_missing'

the code I tried to run is(both inside development.rb or application.rb):

config.middleware.delete Rack::Runtime

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages