Rails 3 ActionMailer and Wicked_PDF
I'm trying to generate emails with rendered PDF attachements using ActionMailer and wicked_pdf. On my site, I'm using already both wicked_pdf and actionmailer separately. I can use wicked_pdf to serve up a pdf in the web app, and can use ActionMailer to send mail, but I'm having trouble attaching rendered pdf content to an ActionMailer (edited for content): class UserMailer < ActionMailer::Base default :from => "webadmin@mydomain.com" def generate_pdf(invoice) render :pdf => "test.pdf", :template => 'invoices/show.pdf.erb', :layout => 'pdf.html' end def email_invoice(invoice) @invoice =