-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `new' for "Rack::Bug":String> #19
Comments
Have you tried giving Rack::Bug as constant instead of string? |
No. I just followed the guide: http://github.com/brynary/rack-bug. I'll try it soon. |
Now I have tried |
Oh, try ::Rack::Bug instead of Rack::Bug. |
Done. Same problem, server wont start with ST as above. |
|
Guys, I'm not having any luck getting this running (Rails 3.0.9 on Ruby 1.9.2):
|
Make ActiveRecord work again
I have installed the gem
I have added the line
config.middleware.use "Rack::Bug", :secret_key => "adsfl232343sdfs24759uweafsdfsd5234"
to my
environments/development.rb
I can start the server, but when I hit my application by pointing my browser to
http://localhost:3000/**rack_bug**/bookmarklet.html
I get the error:
hermes157~/projects/inseeto/pegasus-performance:./script/server
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Thu Jul 08 13:44:49 +0200 2010: Read error: #<NoMethodError: undefined method
new' for "Rack::Bug":String> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:72:in
build'/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
build' /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in
inject'/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
each' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
inject'/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
build' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
build_middleware_stack'/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:113:in
call' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in
run'/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in
call' /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in
call'/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in
call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in
each'/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in
call' /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in
call'/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in
call'/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in
process' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
process_client'/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
each' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
process_client'/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
run' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
initialize'/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
new' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
run'/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
initialize' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
new'/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
run' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in
run'/var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'./script/server:3
Jarl
The text was updated successfully, but these errors were encountered: