I want to test the 500 error pages in my Rails app using the development environment.
I already tried this in config/environments/development.rb:
config.action_controller.consider_all_requests_local = false
But this does not seem to have any effect.
You can either:
local_request?inapplication_controller.rbto something like:The second will stop rails treating requests from localhost and 127.0.0.1 as local requests which combined with
consider_all_requests_local = falseshould show you your 500.html page.