I am trying to use wicked_pdf in my rails 3 application. I have followed all the tutorials and I am getting this error:
Failed to execute:
"/usr/local/bin/wkhtmltopdf" -q "file:////var/folders/_b/50kywsc97r95gvr9gy9nr6700000gn/T/wicked_pdf20130228-874-a51lgi.html" "/var/folders/_b/50kywsc97r95gvr9gy9nr6700000gn/T/wicked_pdf_generated_file20130228-874-1ihqg74.pdf"
I know that wkhtmltopdf exists in the right place because when I type which wkhtmltopdf I am shown the path above. I also get told it's there when I try to brew install again. Furthermore when I type wkhtmltopdf google.com google.pdf it runs fine.
My controller looks like this:
def show #shows some material
@material = Material.find(params[:id])
respond_to do |format|
format.html
format.pdf do
render :pdf => '#{@material.id}',
:wkhtmltopdf => '/usr/local/bin/wkhtmltopdf'
end
end
end
Any suggestions? Does this seem like a wkhtmltopdf issue or a wicked_pdf issue? I have bundle installed everything and bundle updated everything. I have added the wkhtmltopdf-binary gem (which shouldn't be necessary). It doesn't work on heroku either.