2 messages in com.googlegroups.rubyonrails-talkCalling render_to_string from DRB, or...
FromSent OnAttachments
subimage interactiveJan 7, 2008 11:52 pm 
Mark McbrideDec 25, 2008 9:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Calling render_to_string from DRB, or a Rake task?Actions...
From:subimage interactive (subi@gmail.com)
Date:Jan 7, 2008 11:52:42 pm
List:com.googlegroups.rubyonrails-talk

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

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

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

--

-------------------- seth at subimage interactive

----- http://sublog.subimage.com

----- Cashboard - Estimates, invoices, and time tracking software - for free! http://www.getcashboard.com

----- Substruct - Open source RoR e-commerce software. http://dev.subimage.com/projects/substruct