diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb index b315f4ac1..2ed01d989 100644 --- a/app/views/budgets/investments/_header.html.erb +++ b/app/views/budgets/investments/_header.html.erb @@ -40,7 +40,7 @@ <%= t("budgets.investments.header.different_heading_assigned_html", heading_link: link_to( @assigned_heading.name, - budget_investments_path(@budget, heading: @assigned_heading)) + budget_investments_path(@budget, heading_id: @assigned_heading.try(:id))) ) %> diff --git a/spec/features/budgets/ballots_spec.rb b/spec/features/budgets/ballots_spec.rb index c80ec55f4..50670079c 100644 --- a/spec/features/budgets/ballots_spec.rb +++ b/spec/features/budgets/ballots_spec.rb @@ -297,7 +297,7 @@ feature 'Ballots' do expect(page).to_not have_css "#progressbar" expect(page).to have_content "You have active votes in another heading:" - expect(page).to have_link california.name, href: budget_investments_path(budget, heading: california) + expect(page).to have_link california.name, href: budget_investments_path(budget, heading_id: california) end end