From e7d92fda43b319ca61cd6a71e36c0ea14c631212 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Fri, 19 May 2017 14:01:05 +0200 Subject: [PATCH] links results from budget's show --- app/views/budgets/show.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/budgets/show.html.erb b/app/views/budgets/show.html.erb index 6cd74849d..9a81e8079 100644 --- a/app/views/budgets/show.html.erb +++ b/app/views/budgets/show.html.erb @@ -35,6 +35,13 @@ <% end %> <% end %> + + <% if @budget.finished? %> +
+ <%= link_to "Results", + budget_results_path(@budget, heading_id: @budget.headings.first) %> +
+ <% end %>