<%= content_tag :li, role: :option, data: { 'autocomplete-value': product.id } do %> <%= product.name %> | <%= product.price %> | ... <% end %>
pdf = WickedPdf.new.pdf_from_string( render_to_string('templates/pdf', layout: 'pdfs/layout_pdf.html'), footer: { content: render_to_string( 'templates/footer', layout: 'pdfs/layout_pdf.html' ) } )