undefined method `new' for "Rack::Debug":String
tonycoco opened this issue · 6 comments
When adding this to my Rails app (via placing the sample lines in ./config/development.rb), I get 500 errors in Passenger. I think it's where Rack::Debug gets added to the middleware stack. I'll give it a look and see if I can find something.
Same problem here.
the same problem ... any idea?
Same problem, did anyone find a solution?
You can just do...
if RAILS_ENV == "development"
config.gem 'rack-debug'
config.middleware.use 'Rack::Debug'
end
...in your environment.rb, for some reason (which I haven't looked at enough) putting it in environments/development.rb doesn't work all the time.
same error here
I use bundler and tried both on rails 2.3.x and 3.0.x apps and I got it working by adding this to my development.rb
require 'rack/debug'
# for rails 2.3.x
config.middleware.use 'Rack::Debug'
# for rails 3.0.x
config.middleware.use Rack::Debug
The method stated in the README didn't work for me at all