Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails friendly error page in development

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.

like image 504
tybro0103 Avatar asked Nov 06 '22 18:11

tybro0103


1 Answers

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

like image 81
John Hinnegan Avatar answered Nov 12 '22 18:11

John Hinnegan