最佳答案
我刚刚升级到 Rails 3.2.2,现在在 Rails s 中,页面加载,我在日志中看到了所有这些错误:
[2012-03-07 19:46:14] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
[2012-03-07 19:46:14] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
根据以前的 SO 线程,我尝试了以下方法:
/config/application.rb
config.assets.logger = false
config.assets.logger = nil
这些都不管用。对于如何禁用此日志记录此错误有什么想法吗?或者解决这个问题:)
谢谢