Rails friendly error page in development

configurationerror handlingruby-on-rails

In my config/environments/development.rb I have the following line:

config.action_controller.consider_all_requests_local = true

which means I should get all the ugly error stuff when in development environment. But for some reason my app has suddenly started giving me the pretty error page you're supposed to see on production.

Is there possibly some place where this may have been over-ridden? Other people are working on the project as well so maybe one of them did something to cause it.

Best Answer

Old post, but just in case someone finds this like I did ...

I'm pretty sure that when the

config.action_controller.consider_all_requests_local = true

is set, local_request? is never called.

I would dump the config value at runtime and see what it is.

How do I access a Rails configuration value during runtime?

(in rails 3.2)

config.consider_all_requests_local = true