I am working on printing the PDF in rails. I am using the send_data
method to achieve this.
I need the following functionality to be done.
When I click on "Print PDF" icon, a new window or tab should be opened
and the result PDF content should be opened in the new window or
tab(Currently it is working in the same window in which I have the
"Print PDF" icon).