Skip to content
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

uninitialized constant ActionDispatch::DebugExceptions #119

Closed
nicolo opened this issue Feb 5, 2013 · 5 comments
Closed

uninitialized constant ActionDispatch::DebugExceptions #119

nicolo opened this issue Feb 5, 2013 · 5 comments

Comments

@nicolo
Copy link

nicolo commented Feb 5, 2013

I'm getting the following error when running rake or trying to start my server using Rails 3.0.20

uninitialized constant ActionDispatch::DebugExceptions
gems/better_errors-0.5.0/lib/better_errors/rails.rb:6:in `block in class:Railtie'

@thoughtpunch
Copy link

@charliesome @rstacruz
I'm having the same error with version 0.5.0. Additional details below

Details

  • better_errors: 0.5.0
  • ruby: 1.9.3-p327
  • rails: 3.1.10

Stack Trace
....rake/ext/module.rb:36:in const_missing': uninitialized constant ActionDispatch::DebugExceptions (NameError)
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/better_errors-0.5.0/lib/better_errors/rails.rb:6:in block in <class:Railtie>' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/initializable.rb:30:in instance_exec'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/initializable.rb:30:in run' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/initializable.rb:55:in block in run_initializers'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/initializable.rb:54:in each' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/initializable.rb:54:in run_initializers'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/application.rb:96:in initialize!' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/railtie/configurable.rb:30:in method_missing'
from /Users/danbarrett/Sites/db_Contently/config/environment.rb:8:in <top (required)>' from /Users/danbarrett/Sites/db_Contently/config.ru:3:in block in

'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/builder.rb:51:in instance_eval' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/builder.rb:51:in initialize'
from /Users/danbarrett/Sites/db_Contently/config.ru:in new' from /Users/danbarrett/Sites/db_Contently/config.ru:in '
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/builder.rb:40:in eval' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/builder.rb:40:in parse_file'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/server.rb:200:in app' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/commands/server.rb:46:in app'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/server.rb:304:in wrapped_app' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.3.9/lib/rack/server.rb:254:in start'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/commands/server.rb:70:in start' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/commands.rb:54:in block in <top (required)>'
from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/commands.rb:49:in tap' from /Users/danbarrett/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.1.10/lib/rails/commands.rb:49:in <top (required)>'
from script/rails:6:in require' from script/rails:6:in '``

CONFIRMED: Error does not occur with version 0.3.2

@nateberkopec
Copy link

Looks like #104 broke compatibility with Rails versions less than 3.2 (when ActionDispatch::DebugExceptions) was introduced.

@charliesome, is better_errors dropping compatibiilty with Rails 3.1 and less?

@haileys haileys closed this as completed in 3dbe26b Feb 7, 2013
@harssh
Copy link

harssh commented Feb 11, 2013

I am getting the same error wats the solution

@nateberkopec
Copy link

@harsshhfs It's fixed in the repository, but there hasn't been a new gem version since the fix was applied.

To point your Gemfile at this git repo instead of the rubygems version, try:

gem 'better_errors', :github => 'charliesome/better_errors'

@harssh
Copy link

harssh commented Feb 12, 2013

hey thanx for reply @nateberkopec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants