1

I have an app that have the function to download pdf. It was working all fine, but after several commit my pdf function just render encrypted text. the function that trigger the pdf linkenter image description here

  def print_pdf
    airwaybill = Airwaybill.find(params[:airwaybill_id])
    pdf = InvoicePdf.new(airwaybill, current_user)
    puts "#{}"
    send_data pdf.render, filename: "Airwaybill(#{airwaybill.airwaybill_no}).pdf" , type: 'application.pdf'
  end

what could be the most common problem for this issue?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Izzuddin Cheras
  • 237
  • 2
  • 10

0 Answers0