def destroy
      @report = Report.find(params[:id])
      category = @report.category
      @report.destroy
  
      respond_to do |format|
        format.html { redirect_to category_reports_path(category), notice: 'Report was successfully deleted.' }
        format.json { head :no_content }
      end
    end
def destroy
      @report = Report.find(params[:id])
      category = @report.category
      @report.destroy
  
      respond_to do |format|
        format.html { redirect_to category_reports_path(category), notice: 'Report was successfully deleted.' }
        format.json { head :no_content }
      end
    end
DELETE /reports/1
 DELETE /reports/1.json