大约三个小时前,我开始在生产服务器中看到上述错误。它来自对 sanitize gem 的调用:
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:276:in 'load_missing_constant'
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
vendor/gems/sanitize-1.2.0/lib/sanitize.rb:91:in `clean!'
vendor/gems/sanitize-1.2.0/lib/sanitize.rb:84:in `clean'
vendor/gems/sanitize-1.2.0/lib/sanitize.rb:49:in `clean'
app/helpers/application_helper.rb:28:in `display_none'
app/views/main/_blogs.html.erb:13:in `_run_erb_47app47views47main47_blogs46html46erb'
该错误仅发生在生产服务器(linux)上,而不是我的开发机器(windows)
我尝试回滚我最新的部署,但它没有修复它。
我已经更新为清理 1.2.0(这是由 带来的最新版本gem update sanitize
,尽管我注意到我的主机运行的是 1.3.6。
谁能提供任何线索来帮助解决这个问题?