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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With