# Geocoding # # Access to OSM controls class MapsController < ApplicationController def index respond_to do |format| format.html format.json do render json: Event.moderated.future .joins(:related_city).includes(:related_city) .map { |event| event.to_json } end end end end