Skip to content

Active Storage Isn't Playing Nice with Prawn-Rails #459

@seanmarcia

Description

@seanmarcia

Since we switched to active storage our pdf generation on distributions is not working correctly.

We attempt to pull in the logo of the diaper banks in the pdfs we generate app/views/distributions/print.pdf.prawn on lines 2 and 120. Using the logo_file_path which is a helper method but something with the recent active storage has broken this.

This you can see the helper method in the following file: app/helpers/distributions_helper.rb

We need to get the images properly inserted back into the generated pdfs.

This is hopefully a simple fix.

To reproduce you need to upload a diaper bank logo so the file prawn is pulling in is one that is being accessed through active storage.

I've attached a logo from one of our partner diaper banks for testings.

logo-long

Metadata

Metadata

Assignees

Labels

CRITICALThis issue rolled a natural 20 and needs to be addressed with high priorityHelp WantedGroomed + open to all!

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions