I have a complicated problem with creating zip file containing collection of active record object in pdf format.
I have invoices controller and in this controller I have action show which looks like this:
def show
add_breadcrumb "Inovice details"
respond_to do |format|
format.html
format.pdf do
render :pdf => "file_name"
end
end
end
I generate pdf with wicked_pdf gem. And now my goal is to from selected collection get each of invoice generate pdf file from it and add it to the zip file. I don't have any idea where to start. Thanks in advance.