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.
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.

19 lines
381 B

# Manage event tags
class TagsController < InheritedResources::Base
def index
@tags = Event
.join(' ')
.group_by { |i| i }
.reject { |_k, v| v.size < 2 }
.map { |k, v| [k, v.size] }
def show
@events_future = Event.future.tag params[:id]
@events_past = Event.past.tag params[:id]