From ed32a4887c0efd65d3503e77d20d81672b7c76c7 Mon Sep 17 00:00:00 2001 From: Michael Herzberg Date: Fri, 22 Feb 2019 12:59:29 +0000 Subject: [PATCH] fixed report --- app/controllers/reports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index f889b26..1918193 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -7,7 +7,7 @@ class ReportsController < ApplicationController FileUtils.mkdir_p(Rails.configuration.report_dir) unless File.directory?(Rails.configuration.report_dir) report.render_file Rails.configuration.report_dir.join(filename) - redirect_to action: 'show', filename: filename + redirect_to "/reports/" + filename else kick_out end