def show
      @report = Krikri::QAReport.find(params[:id])
      @type = params[:type] == 'count' ? :count : :field

      respond_to do |format|
        format.html
        format.csv { render text: @report.send("#{@type}_csv".to_sym).to_csv }
      end
    end
def show
      @report = Krikri::QAReport.find(params[:id])
      @type = params[:type] == 'count' ? :count : :field

      respond_to do |format|
        format.html
        format.csv { render text: @report.send("#{@type}_csv".to_sym).to_csv }
      end
    end
Rendering the report as either a full `field` report or a `count` report.

 Responds to format of `text/csv` with a CSV rendering of the requested
 report type.