Class: MotoWebEngine::RunsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/moto_web_engine/runs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/moto_web_engine/runs_controller.rb', line 6

def index
  @runs = Run.order('created_at DESC').page(params[:page]).per(20)
end

#showObject



10
11
12
# File 'app/controllers/moto_web_engine/runs_controller.rb', line 10

def show
  @run = Run.find(params[:id])
end