Class: Krikri::ValidationReportsController
- Inherits:
-
CatalogController
- Object
- ActionController::Base
- ApplicationController
- CatalogController
- Krikri::ValidationReportsController
- Defined in:
- app/controllers/krikri/validation_reports_controller.rb
Overview
Marshals validation reports for views.
ValidationReportsController inherits from the host application’s ApplicationController. It does not interit from Krikri’s ApplicationController.
Instance Method Summary collapse
-
#show ⇒ Object
Render the show view.
Instance Method Details
#show ⇒ Object
Render the show view
This differs from Blacklight::CatalogController‘s normal handling of the index and show views, Giving a paginated list of response documents instead of showing a single document.
@todo: consider bringing this in line with Blacklight’s approach
28 29 30 31 32 33 |
# File 'app/controllers/krikri/validation_reports_controller.rb', line 28 def show @current_provider = params[:provider] @response = build_report.find(params[:id]) @documents = @response.documents end |