Class: RunsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RunsController
- Defined in:
- app/controllers/runs_controller.rb
Instance Method Summary (collapse)
-
- (Object) index
Root page of application.
-
- (Object) show
An individual run, lists and provides downloads of finding aids.
Instance Method Details
- (Object) index
Root page of application
3 4 5 |
# File 'app/controllers/runs_controller.rb', line 3 def index @runs = Run.order(created_at: :desc) end |
- (Object) show
An individual run, lists and provides downloads of finding aids
8 9 10 |
# File 'app/controllers/runs_controller.rb', line 8 def show @run = Run.includes(finding_aid_versions: {finding_aid: :repository}).find(params[:id]) end |