Schmooze:: Process failed + when using grover gem to convert html2pdf
问题 respond_to do |format| format.html format.pdf do grover = Grover.new('http://localhost:3000/generate_report', format: 'A4') pdf = grover.to_pdf File.open(Rails.root.join('report.pdf'),'wb', encoding: 'ascii-8bit') { |f| f.write(pdf)} end end I need to convert my html page to pdf. But i get a "schmooze process fail" and the system hangs when it does grover.to_pdf. It works well on terminal but not in my rails project. 回答1: It sounds like your system is hanging because when you run Rails in