I am trying to send the pdf file for the user to download. I am using
send_data method to send the pdf file.
When the user clicks on the “Print PDF” link, the controller method is
called the and the pdf file is saved.
I tried with HTML request(link_to “Print PDF”) and it is working fine.
But when tried with AJAX request,(i.e link_to_remote “Print PDF”), the
pdf is not saved but there is no error logged in the log file.
But I have to pass the ajax request. Why is it not working with
And how can I make it working???
Thanks in advance…