0

I'm using Prawn to generate invoices as PDFs on the fly, which open in Adobe Acrobat. Is there a quick way to have that same invoice display as HTML, or at least be viewable from within my web app while retaining the layout, rather than opening up a new window/PDF? I've been unable to find any good example or suggestions. Thanks for your time and assistance.

user464180
  • 1,349
  • 2
  • 23
  • 46

1 Answers1

1

use send_data in your controller action to open required files in the browser.

Check out the following SO question for more info

Community
  • 1
  • 1
rb512
  • 6,880
  • 3
  • 36
  • 55