Adds more controller variables and uses them in investment controller

This commit is contained in:
kikito
2016-12-05 17:35:40 +01:00
parent 407ad301d1
commit 882565aeca
2 changed files with 17 additions and 1 deletions

View File

@@ -18,7 +18,12 @@
</div>
<% @investments.each do |investment| %>
<%= render partial: '/budgets/investments/investment', locals: { investment: investment, investment_votes: @investment_votes } %>
<%= render partial: '/budgets/investments/investment', locals: {
investment: investment,
investment_ids: @investment_ids,
investment_votes: @investment_votes,
investment_ballots: @investment_ballots
} %>
<% end %>
<%= paginate @investments %>