# # ishapi / venues / _index # json.n_venues venues.count json.venues do json.array! venues do |venue| json.id venue.id.to_s json.address venue.address if venue.address.present? json.name venue.name json.slug venue.slug json.subhead venue.subhead json.description venue.descr json.x venue.x json.y venue.y json.photo venue.profile_photo ? venue.profile_photo.photo.url( :thumb ) : image_url('missing.png') json.partial! 'ishapi/tags/index', :tags => venue.tags end end