Dragonfly with Wicked PDF
I’ve been having trouble finding information about using Wicked PDF in combination with the Dragonfly gem.
I also had trouble in the Dragonfly gem documentation locating a method to produce the actual file path.
A series of guess led me to this:
@foo.bar.path
With that knowledge, adding an image to a wicked pdf view is as simple as:
= image_tag @invoice.account.logo.path
I am available for Ruby on Rails consulting work – get in touch to learn more.