Isnor Creative
Isnor Creative Blog
Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue

Jul 19, 2013

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.

Gordon B. Isnor

Gordon B. Isnor writes about Ruby on Rails, Ember.js, Elm, Elixir, Phoenix, React, Vue and the web.
If you enjoyed this article, you may be interested in the occasional newsletter.

I am now available for project work. I have availability to build greenfield sites and applications, to maintain and update/upgrade existing applications, team augmentation. I offer website/web application assessment packages that can help with SEO/security/performance/accessibility and best practices. Let’s talk

comments powered by Disqus