<% if @investments.present? %> <% @investments.each do |investment| %> $("#<%= dom_id(investment) %>_ballot").html("<%= j render("/budgets/investments/ballot", investment: investment, investment_ids: investment_ids, ballot: ballot) %>"); <% end %> <% end %>