How to test 500.html in rails development env?

前端 未结 8 1187
悲哀的现实
悲哀的现实 2020-12-14 05:53

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:

8条回答
  •  一生所求
    2020-12-14 06:21

    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
    

提交回复
热议问题