Thanks Nick,

Yeah, I will probably just head down that Net::HTTP route. I am actually
using a program called ReportMan to generate the pdfs, and I already have
the routes setup to send back the pdf. This will be a daily con-job run at
9am, to send the report to a bunch of clients. So I'm not worried about the
load on the server (it takes about 3 seconds to generate). But I figured
using ActionController I can send a simple HTTP get request and get
information back in response, but oh well :)



On Feb 4, 2008 1:51 PM, Nick Zadrozny <[EMAIL PROTECTED]> wrote:

> Hey Adam, interesting question.
>
> Of course, there's Net::HTTP which is actually quite easy to use.
>
> http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
>
> But is there any particular reason you need to send this request through
> an entire HTTP Get request? Maybe you need to run this through some kind of
> template to format the report, but if that action is running locally, then
> presumably you can render it directly from right there in the mailer. That
> will save you from blocking one of your Rails processes and the overhead of
> an HTTP request.
>
> I'm not sure how exactly you're generating your PDF. If you're using, say,
> PDF::Writer, just use it directly to load and render your show.rpdftemplate. 
> I've never done dynamic PDF generation so I don't know if that's a
> trivial task, but it's worth checking out.
>
> --
> Nick Zadrozny • beyondthepath.com
> >
>

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
sdruby@googlegroups.com
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to