Correct way to link to prawnto partial

202 views Asked by At

I'm trying to access the prawnto documentation but their website is down. Does anyone know what's the correct way to link to a prawnto partial in my rails app. Here is how I linked to the main pranwto file, namely, show.pdf.prawn:

<%= link_to hotel_shell_path(@hotel_shell, :format => 'pdf') do %>
  <%= icon("file-pdf-o", "", class: "", href: '#') %>
<% end %>

show.pdf.prawn is rendering partials for a lot of other pdf.prawn files with the partial! method that prawnto uses.

However, I don't wanna link to show.pdf.prawn this time. I wanna link to one of the partials.

0

There are 0 answers