A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
470 B

class RegionsController < InheritedResources::Base
def icallist
@regions = Region.all
end
def stats
@regions = Region.all
@events = Event.group(:city).having('count(city) > 3').order('count(city) desc').count(:city)
@months = Event
.select('extract(year from start_time)')
.select('extract(month from start_time)')
.group('extract(year from start_time)')
.group('extract(month from start_time)')
.count()
end
end