Wicked-PDF not showing images, 'wicked_pdf_image_tag' undefined
I want to generate a PDF with our department logo in it. When I try to use the WickedPdf class in my controller (using the method described at https://github.com/mileszs/wicked_pdf ): def some_action image_tag_string = image_tag('logo.jpg') pdf = WickedPdf.new.pdf_from_string(image_tag_string) save_path = Rails.root.join('testpdfs','logotest.pdf') File.open(save_path, 'wb') do |file| file << pdf end end ...the application saves the PDF to the target directory, but it has a blue-and-white '?' mark where the image should be. If I do this instead: image_tag_string = wicked_pdf_image_tag('logo.jpg