Hey Guys,
I wish to generate a PDF on the fly to attach to an email. I am using
action mailer and I want to tell the action mailer to attach a PDF
from a URL not a file. All of the examples I have seen attach the
file to the email like so...
attachment :content_type => "image/jpeg",
:body => File.read("an-image.jpg")
Is there anyway I can make it so that "an-image.jpg" is called from a
url on the localhost so something like "localhost/invoice.pdf". This
will fit in to my rails app as it generates a PDF using prawn and
prawnto from that url.
Thanks for any help
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---