Rails开发环境不会在错误500上显示错误类型和控制台 [英] Rails development env dont show the error type and console on error 500
本文介绍了Rails开发环境不会在错误500上显示错误类型和控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的开发错误看起来像在生产中。
My development errors look like in production.
这里是他们在开发中的样子:
生产样式错误
Here how they are looking in development: Production style errors
代替此错误设计:
开发样式错误
我尝试过将所有请求视为 production.rb 中的本地请求,但这并不能使它们看起来像应该在开发中那样。
I tried to consider all request as local in production.rb but this doesn't make them looking like they are supposed to look in development.
config.consider_all_requests_local = true
有人可以帮助我了解如何回到通常的错误开发风格?谢谢!
can someone help me to find out how to come back to the usual error development style? Thanks !
推荐答案
非常感谢您的帮助。对所有提交进行分析后,我发现这是由于对Gemfile.lock进行了捆绑更新
Thanks a lot for your help. After an analysis of all my commits I found out it was due to a bundle update of the Gemfile.lock
这篇关于Rails开发环境不会在错误500上显示错误类型和控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文