Purpose of “consider_all_requests_local” in config/environments/development.rb?

后端 未结 2 689
礼貌的吻别
礼貌的吻别 2020-12-02 16:16

What is the purpose of this Rails config setting...

config.action_controller.consider_all_requests_local = true

It\'s set to true by defaul

2条回答
  •  被撕碎了的回忆
    2020-12-02 17:04

    Non-local requests result in user-friendly error pages. Local requests, assumed to come from developers, see a more useful error message that includes line numbers and a backtrace. consider_all_requests_local allows your app to display these developer-friendly messages even when the machine making the request is remote.

提交回复
热议问题