subimage interactive
2008-Jan-08 07:53 UTC
Calling render_to_string from DRB, or a Rake task?
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try following this: http://www.omninerd.com/articles/render_to_string_in_Rails_Models_or_Rake_Tasks You ultimately don''t use render_to_string, but you get the same results. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---