Summarize what is going on:
OSX: 10.8.4, wkhtmltopdf: 0.9.1 (via gem wkhtmltopdf-binary), pdfkit: 0.5.4
When submitting a link over with the pdf format, the dock displays a terminal icon for wkhtmltopdf and rails server hangs. Generally clicking the wkhtmltopdf on the dock will unhang the application, but this is not the case for me.
Our rack config is:
config.middleware.use PDFKit::Middleware, {}, :only => [%r[^/admin/snailers/\d*/download_snailer.pdf.*/], "/admin/activities/transactions_on_and_offline_report"]
Here is the controller method:
def transactions_on_and_offline_report
@transactions = Transaction.find(:all, joins: [:transaction_type],
conditions: {transactions: { created_at: (Date.parse(params[:filter][:start_date]))..(Date.parse(params[:filter][:end_date])) }})
end
The link
transactions_on_and_offline_report_admin_activities_path(format: :pdf)
I feel like I have covered all my bases here and this should work, but I'm striking out right now. Does anyone see something I should change or try?