【问题标题】:Ruby on rails and crmRuby on rails 和 crm
【发布时间】:2018-12-23 14:06:25
【问题描述】:

我有带有 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'

【问题讨论】:

  • 您需要提供更多信息,但第 8 行似乎出现错误。您确定可以在analysis 上拨打#data_version 吗?

标签: ruby-on-rails ruby apache crm trx


【解决方案1】:

根据错误消息,调用analysis.data_version 似乎会导致错误。您确定data_versionanalysis 的方法或属性吗?

【讨论】:

  • Nelson...我不确定编码部分...当我尝试访问同一 CRM 中另一个客户的仪表板时,它工作正常。我不知道为什么这个用户会发生这种情况
猜你喜欢
  • 2020-02-01
  • 2012-01-09
  • 2011-05-06
  • 2012-07-08
  • 2011-04-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多