0

How can I place a button in my dashboard to print the contents of an item (let's say a html/pdf offer)?

When I do this:

<%= link_to 'Print', "/detalii-oferta/#{offer.offer_token}.pdf", :onclick => 'window.print();return false;'%> 

it takes the dashboard view into printing.

Mohamed Yakout
  • 2,868
  • 1
  • 25
  • 45
Bogdan Popa
  • 1,099
  • 1
  • 16
  • 37

0 Answers0