Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在开发模式下使用服务器,它会在 html 页面上出现错误,而不是消息“我们很抱歉,但出了点问题。”。它以开发模式启动,但没有给出错误信息,仍然给出同样的愚蠢信息。我怎样才能让它打开错误信息。发生错误时在html页面上。
在您的环境文件中, development.rb 或 production.rb 执行以下操作:
config.consider_all_requests_local = true