How to test 500.html in rails development env?

Solution 1:

The only way I've found to do this so far is to set in development.rb

config.consider_all_requests_local = false

Now, restart the server.

Then access the URLs using my local IP address: http://192.168.1.135:3000/blah

The other settings mentioned don't seem to have any effect.

Solution 2:

None of the proposed solutions worked in my Rails 3 app. The quick and dirty solution for me was to simply hit the error pages directly to see the rendered HTML. For example,

http://0.0.0.0:3000/404.html

http://0.0.0.0:3000/500.html