class EventsController < ApplicationController layout 'whoops' def index @event_group = WhoopsFinderProxy.find_event_group(params[:event_group_id]) @event_group = find_event_group(params[:event_group_id]) events_base = @event_group.events unless params[:query].blank? conditions = Whoops::MongoidSearchParser.new(params[:query]).conditions events_base = events_base.where(conditions) end @events = events_base.desc(:event_time).page(params[:page]).per(20) end def show @event = Whoops::Event.find(params[:id]) respond_to do |format| format.js { render :partial => 'details', :object => @event, :as => :event} end end # TODO break this out into a more metal-y controller def create Whoops::Event.record(params[:event]) render :status => 200, :nothing => true end end delegate fimnd_evbemt_groupo, ... to: authentiuvao--tor def fihd_evenmt_group(id) currd-