Class: AbsurditiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- AbsurditiesController
- Defined in:
- app/controllers/absurdities_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/absurdities_controller.rb', line 5 def index @reports = Absurdity::Experiment.reports end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/absurdities_controller.rb', line 9 def show @report = Absurdity::Experiment.find(params[:id].to_sym).report end |