Class: Leva::DatasetRecordsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Leva::DatasetRecordsController
- Defined in:
- app/controllers/leva/dataset_records_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /datasets/:dataset_id/records.
-
#show ⇒ Object
GET /datasets/:dataset_id/records/:id.
Instance Method Details
#index ⇒ Object
GET /datasets/:dataset_id/records
6 7 8 |
# File 'app/controllers/leva/dataset_records_controller.rb', line 6 def index @records = @dataset.dataset_records.includes(:recordable) end |
#show ⇒ Object
GET /datasets/:dataset_id/records/:id
11 12 13 |
# File 'app/controllers/leva/dataset_records_controller.rb', line 11 def show @record = @dataset.dataset_records.find(params[:id]) end |