How to test 500.html in rails development env?

前端 未结 8 1183
悲哀的现实
悲哀的现实 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:19

    In addition to setting: config.consider_all_requests_local = false I also needed to set: config.action_dispatch.show_exceptions = true

提交回复
热议问题