1

I installed gem better_errors version 2.1.1 for my ruby on rails application. However, I still get the same old debug page. I have also installed the gem binding_of_caller. I even installed the three gems which as shown as runtime dependencies for better_errors, namely erubis, coderay and rack(see the gem page here). All this to no avail.

I have also tried other solutions, one is this. All this to no avail.

I am using Ubuntu 16.04, rails 5.0.0.1 and ruby 2.3.1p112.

Community
  • 1
  • 1
Sahil Arora
  • 875
  • 2
  • 8
  • 27

2 Answers2

2

Make sure you are not testing with just a routing error / 404 exception, as that will no longer end up triggering better_errors.

Best way to confirm whether it's working or not would be to put some undefined variable in a controller action and then hitting that URL.

tirdadc
  • 4,603
  • 3
  • 38
  • 45
0

You installed the gem in development?

'group :development do
  gem "better_errors"
end'

I just added better_errors to my Rails 5 app and its working fine.