I am using wicked_pdf gem for HTML to PDF conversion. As per the descriptions in Github, I installed everything correctly. But I am getting a runtime error -
RuntimeError (Bad wkhtmltopdf's path: /usr/local/bin/wkhtmltopdf): app/controllers/orders_controller.rb:46:in `create
`44 @count = Item.count(:qty)
45 @temp = Item.where(:received => true).count()
46 render :pdf => "Bill" ,
47 :template => 'orders/create.pdf.erb', # Excluding ".pdf" extension.
48 page_height: 100,
49 page_width: 80`
and wkhtmltopdf is installed in my system at /usr/local/bin/wkhtmltopdf
It is specified that the path for wkhtmltopdf should be where it's already installed.
I am not able to figure out what the problem is.