Class: MotoWebEngine::RunsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MotoWebEngine::RunsController
- Defined in:
- app/controllers/moto_web_engine/runs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
10 11 12 |
# File 'app/controllers/moto_web_engine/runs_controller.rb', line 10 def show @run = Run.find(params[:id]) end |