Sha256: 6be60c16974ccdd6ab2d728c512b3144c371c4912f1e3463d5da106bea199f5b

Contents?: true

Size: 821 Bytes

Versions: 3

Compression:

Stored size: 821 Bytes

Contents

#
# ishapi / cities / show
#

key = [ @city, params.permit! ]
json.cache! key do
  json.city do
    json.id          @city.id.to_s
    json.name        @city.name
    json.cityname    @city.cityname
    json.description @city.description
    json.x           @city.x
    json.y           @city.y

    json.partial! 'ishapi/newsitems/index', :newsitems => @city.newsitems
    json.partial! 'ishapi/features/index',  :features  => @city.features
    json.partial! 'ishapi/galleries/index', :galleries => @city.galleries
    json.partial! 'ishapi/reports/index',   :reports   => @city.reports
    json.partial! 'ishapi/users/index',     :users     => @city.current_users
    json.partial! 'ishapi/venues/index',    :venues    => @city.venues
    json.partial! 'ishapi/videos/index',    :videos    => @city.videos
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ishapi-0.1.8.17 app/views/ishapi/cities/show.jbuilder
ishapi-0.1.8.16 app/views/ishapi/cities/show.jbuilder
ishapi-0.1.8.15 app/views/ishapi/cities/show.jbuilder