7 lines
260 B
Ruby
7 lines
260 B
Ruby
json.array!(@events) do |event|
|
|
json.extract! event, :id, :title, :description, :start_time, :end_time,
|
|
:place_name, :address, :city, :region_id, :locality, :url,
|
|
:contact, :tags
|
|
json.url event_url(event, format: :json)
|
|
end
|