<% @products.each do |obj| %> <% (1..obj['print']).each do |i| %>

<%= obj['product'].name %>

<%= wicked_pdf_barcode_image("#{obj['product'].barcode}.png", options = { width: 150, height: 50 }) %>
    <% obj['product'].attrs_array.each do |attribute| %>
  • <%= attribute %>
  • <% end %>
<%= number_to_currency(obj['price'], precision: 2) %>


<% end %> <% end %>