Class: Krikri::FieldValueReportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/krikri/field_value_reports_controller.rb

Overview

Handles HTTP requests for Field Value Reports

See Also:

Instance Method Summary collapse

Instance Method Details

#showObject

Renders the show view for the field value report, given by a compound key. The compound key is comprised by the field value report’s field (represented by the route’s id param) and the provider’s id.



12
13
14
15
16
17
18
19
# File 'app/controllers/krikri/field_value_reports_controller.rb', line 12

def show
  @field_value_report = Krikri::FieldValueReport.find(params[:id], 
                                                      params[:provider_id])

  respond_to do |format|
    format.csv
  end
end