ActiveMailer PDF Email Attachments with Paperclip
Let’s say we have a Report model, which has PDFs as Paperclip attachments: # /app/models/report.rb class Report < ActiveRecord::Base belongs_to :user has_attached_file :pdf validates_attachment :pdf, content_type: { content_type: "application/pdf »