ability to view individual event #71:close

This commit is contained in:
Kyle Drake 2015-02-26 11:17:40 -08:00
parent 781e85f908
commit b822d4345b

View file

@ -1,6 +1,14 @@
get '/activity' do get '/activity' do
#expires 7200, :public, :must_revalidate if self.class.production? # 2 hours #expires 7200, :public, :must_revalidate if self.class.production? # 2 hours
params[:activity] = 'global' # FIXME this is a bad hack params[:activity] = 'global' # FIXME this is a bad hack
@events = Event.global_dataset.all
global_dataset = Event.global_dataset
if params[:event_id]
global_dataset.where! Sequel.qualify(:events, :id) => params[:event_id]
end
@events = global_dataset.all
erb :'activity' erb :'activity'
end end