Calling render_to_string from DRB, or a Rake task?

Has anyone accomplished this magical feat and have code they’d like to
I’m trying to offload some of my PDF generation stuff into DRB, and
some PDFs from Rake tasks. Of course, these PDFs are driven using HTML
my application…that comes from RHTML templates.

Right now I’m doing it via a module inside my controller - but of course
that Rails ActionView and ActionController magic go away when you’re in
or Rake land.

I’m going crazy here - someone point me in the right direction.

seth at subimage interactive

Cashboard - Estimates, invoices, and time tracking software - for free!

Substruct - Open source RoR e-commerce software.

Try following this:

You ultimately don’t use render_to_string, but you get the same results.