fixes link in investments index header

This commit is contained in:
Juanjo Bazán
2017-05-04 13:17:09 +02:00
parent b2082c0cf7
commit 5817aa8d13
2 changed files with 2 additions and 2 deletions

View File

@@ -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)))
) %>
</div>
</div>

View File

@@ -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