ActionView::TemplateError (undefined method `count' for REXML::Comment:Class) on line #198 of app/views/shop_space/meiyong_P_S0001.erb: 195: <% if !@shop_photo.nil? and @shop_photo.comment == 1 %> 196:

197:
198:

粉丝评论(<%= comment_count(@shop.id, "shop_photo", @shop_photo.id) %>)

199:
200: 201:
app/helpers/shop_space_helper.rb:68:in `comment_count' app/views/shop_space/meiyong_P_S0001.erb:198 app/controllers/shop_space_controller.rb:302:in `photo' app/controllers/application_controller.rb:39:in `exception_catch' unicorn (4.8.2) lib/unicorn/http_server.rb:572:in `process_client' unicorn (4.8.2) lib/unicorn/http_server.rb:666:in `worker_loop' unicorn (4.8.2) lib/unicorn/http_server.rb:521:in `spawn_missing_workers' unicorn (4.8.2) lib/unicorn/http_server.rb:532:in `maintain_worker_count' unicorn (4.8.2) lib/unicorn/http_server.rb:290:in `join' unicorn (4.8.2) bin/unicorn_rails:209 /usr/local/bin/unicorn_rails:19:in `load' /usr/local/bin/unicorn_rails:19