0

我最近将我的 rails 应用程序更新为 rails 5.2 和 Ruby 版本 2.3.3,令我惊讶的是,浏览器中的开发错误不再显示为错误,而是显示消息

We are sorry, something went wrong If you are the application owner please check logs

尽管,

config.consider_all_requests_local = true

存在于我的 development.rb 文件中。

跑步RAILS_ENV=development rails s也无济于事

我所做的所有更改都是仅遵循 Rails 指南。

存在没有结论的类似线程:这里 提前谢谢

4

1 回答 1

0

我也有同样的问题,当我检查我的 config/environments/development.rb 时,它config.consider_all_requests_local = true被设置为 false。

之后,我安装了 Web 控制台调试gem "better_errors",一切正常。还要确保web-console也安装了 gem。

于 2019-08-19T19:01:28.520 回答