Class: AbsurditiesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/absurdities_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



13
14
15
16
# File 'app/controllers/absurdities_controller.rb', line 13

def create
  Absurdity.track!(params[:metric], params[:experiment], params[:identity_id])
  render nothing: true
end

#indexObject



5
6
7
# File 'app/controllers/absurdities_controller.rb', line 5

def index
  @reports = Absurdity::Experiment.reports
end

#showObject



9
10
11
# File 'app/controllers/absurdities_controller.rb', line 9

def show
  @report = Absurdity::Experiment.find(params[:id].to_sym).report
end