Skip to content

Instantly share code, notes, and snippets.

@bear454
Created August 26, 2009 18:03
Show Gist options
  • Save bear454/175686 to your computer and use it in GitHub Desktop.
Save bear454/175686 to your computer and use it in GitHub Desktop.
def class Cart < ActiveRecord::Base
#...
def installation_instructions_pdf(pdf = nil)
pdf ||= Prawn::Document.new
eval(IO.read("app/views/cards/installation.pdf.prawn"))
pdf
end
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment