agenda-libre-ruby/app/controllers/maps_controller.rb

8 lines
181 B
Ruby

class MapsController < ApplicationController
def index
@cities_event = City.joins(:events).where('start_time > ?', 360.days.ago)
@cities_lug = City.joins :lugs
end
end