config.exceptions_app not working in rails

后端 未结 1 1785
我寻月下人不归
我寻月下人不归 2021-01-19 07:14

I\'m trying to render a custom error page for all 404 and 500 errors. So I have defined two methods not_found and internal_server_error in ErrorController class.

<         


        
相关标签:
1条回答
  • 2021-01-19 07:51

    Well it turns out that the variable config.consider_all_requests_local was set to true and hence my requests weren't being routed to custom error pages.

    0 讨论(0)
提交回复
热议问题