我正在使用PDF和wkhtmltopdf-binary生成wicked_pdf。但是我面临着undefined method 'render_to_string'的问题。# some code here for send pdf back to response endGemfile:gem 'wkhtmltopdf-binary
WickedPdf.config = { # one of the wkhtmltopdf-binaryexe_path: 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe', #exe_path: Gem.bin_path('wkhtmltopdf-binary
WickedPdf.config = { # one of the wkhtmltopdf-binary# exe_path: 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'}
我还使用了gem 'wicked_pdf‘gem 'wkhtmltopdf-binary