mileszs/wicked_pdf — Issue #84: mailing/saving to disk issue
Author: redr0bin
Created: 2012-01-29 19:17:31+00:00
State: open

Hello,
I'm really excited of wicked_pdf after using Prawn for some time.
There are two problems (maybe faq, but can not find any clean answer to my questions):

My current project needs to track customer claims and generate different documents based on the same data.
On every claim state change I need to generate and send pdf document to customers email.

For now I have working /path/to/data/id.pdf method, works like a charm.
How can I generate the document from model in after_create method or from other class like mailers/custom daemons ?
If there is a way to save the pdf to disk w/o user click on url *.pdf ?

Thanks in advance!