diff --git a/app/controllers/budgets_controller.rb b/app/controllers/budgets_controller.rb index 6d3b5e154..8d69b8c98 100644 --- a/app/controllers/budgets_controller.rb +++ b/app/controllers/budgets_controller.rb @@ -15,7 +15,7 @@ class BudgetsController < ApplicationController def index @finished_budgets = @budgets.finished.order(created_at: :desc) - @budget = current_budget + @current_budget = current_budget @budgets_coordinates = current_budget_map_locations end diff --git a/app/views/budgets/_phases.html.erb b/app/views/budgets/_phases.html.erb index 1d0968c46..928ffb993 100644 --- a/app/views/budgets/_phases.html.erb +++ b/app/views/budgets/_phases.html.erb @@ -1,6 +1,6 @@
<%= link_to t("budgets.index.section_header.help"), "#section_help" %> @@ -19,11 +19,11 @@
<%= t('budgets.show.phase') %>
-
- <%= link_to budget_investments_path(@budget.id) do %>
+ <%= link_to budget_investments_path(@current_budget.id) do %>
<%= t("budgets.index.investment_proyects") %>
<% end %>
- <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unfeasible') do %>
+ <%= link_to budget_investments_path(budget_id: @current_budget.id, filter: 'unfeasible') do %>
<%= t("budgets.index.unfeasible_investment_proyects") %>
<% end %>
- <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unselected') do %>
+ <%= link_to budget_investments_path(budget_id: @current_budget.id, filter: 'unselected') do %>
<%= t("budgets.index.not_selected_investment_proyects") %>
<% end %>