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: