0

我有带有 apache、Redis 和延迟作业的 CRM,当我访问客户资料/仪表板时,它会引发内部服务器错误。其他客户所有其他配置文件加载良好。查看服务器日志,我可以找到以下错误。有人可以帮我解决吗?

红宝石 1.8.7

root@rails:/srv/www/crm/shared/log# tail -n 100 production.log


7:
8:         - if analysis.data_version > 2
9:           %tr
10:             %td{ :class => "icon #{analysis.kind}"}  
11:             %td
app/views/customers/_current_analyses.haml:8:in `_run_haml_app47views47customers47_current_analyses46haml_locals_current_analyses_object'
/home/deploy/.bundler/crm/ruby/1.8/gems/will_paginate-2.3.15/lib/will_paginate/finder.rb:168:in `method_missing'
activerecord (2.3.17) lib/active_record/associations/association_collection.rb:392:in `method_missing_without_paginate'
activerecord (2.3.17) lib/active_record/associations/association_proxy.rb:215:in `each'
activerecord (2.3.17) lib/active_record/associations/association_proxy.rb:215:in `send'
activerecord (2.3.17) lib/active_record/associations/association_proxy.rb:215:in `method_missing'
activerecord (2.3.17) lib/active_record/associations/association_collection.rb:392:in `method_missing_without_paginate'
/home/deploy/.bundler/crm/ruby/1.8/gems/will_paginate-2.3.15/lib/will_paginate/finder.rb:168:in `method_missing'
app/views/customers/_current_analyses.haml:6:in `_run_haml_app47views47customers47_current_analyses46haml_locals_current_analyses_object'
4

1 回答 1

1

According to the error message, it appears that calling analysis.data_version is causing the error. Are you certain that data_version is a method or property of analysis?

于 2018-07-16T14:48:27.030 回答