From f40cd1eb934650f95b1540bb2d959f253264e7f3 Mon Sep 17 00:00:00 2001 From: BuffaloWill Date: Thu, 28 Dec 2017 09:49:24 -0500 Subject: [PATCH] fix for error when first report is created --- routes/report.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/report.rb b/routes/report.rb index 9a2875a2..e59fd0c4 100644 --- a/routes/report.rb +++ b/routes/report.rb @@ -42,6 +42,9 @@ @report.scoring = set_scoring(config_options) @report.save + # compensate for datamappers oddness + @report1 = get_report(@report.id) + redirect to("/report/#{@report.id}/edit") end