Open bobbyworx opened 10 years ago
This looks to be related to #41
The asset helpers mostly deal with stuff in the asset pipeline, since these are paperclip images, they are likely elsewhere on the filesystem. I'm not sure how the pipeline sorts out the difference between paperclip images and normal assets.
Please let me know if that helps or not, and I'll dig in further if necessary.
I am rendering the file from inside the model. I actually want to render it through Sidekiq but it's the same result. Here is my code so far:
model:
controller:
In templates layout:
If I specify a wicked_pdf_image_tag:
it gives me 'undefined method `pathname' for nil:NilClass'
When I'm rendering the pdf file from the controller, it all works fine. How can I correct this? Is it a matter of the way wicked_pdf is handling assets? Thanks!