在Rails的环境配置文件中, 配置cache的时候看到 config.action_controller.consider_all_requests_local= true, 不知到什么意思。 查证如下:
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.
如果是开发环境, 应该看到赤裸裸的报错信息, 设为Ture, 如果是生产环境, 则是包装过的出错信息, 设为false.