Use booth assigment partial correctly
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @booths.each do |booth| %>
|
||||
<%= render partial: "booth_assignment", locals: { booth: booth } %>
|
||||
<tr id="<%= dom_id(booth) %>" class="booth">
|
||||
<%= render partial: "booth_assignment", locals: { booth: booth, booth_assignment: booth.assignment_on_poll(@poll) } %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user