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:
You can either:
local_request? in application_controller.rb to something like:def local_request? false end
The second will stop rails treating requests from localhost and 127.0.0.1 as local requests which combined with consider_all_requests_local = false should show you your 500.html page.
if you just want to force a 500 error to see what it looks like, you can just add this to a view:
haml example:
= render :partial => "broken", :status => 500