Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="box-body no-padding">
- <table class="table table-condensed">
- <tr>
- <th>Produto</th>
- <th>Quantidade total</th>
- </tr>
- <% @items.each do |item| %>
- <tr>
- <td><%= item.product.name %></td>
- <td><%= item.product.items.sum(:qtd_product) %></td>
- </tr>
- <% end %>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement