Created
July 6, 2020 11:22
-
-
Save kennethteh90/691e4b5b922270cc59cdc3eaa456cacc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pdf | |
rendered_pdf = SomePrawnPdfDocument.new(params, view_context).render | |
send_data( | |
rendered_pdf, | |
type: 'application/pdf', | |
disposition: 'inline' | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment