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,668
  • 24
  • 42
Bogdan Popa
  • 1,069
  • 1
  • 15
  • 32

0 Answers0