Skip to content

Instantly share code, notes, and snippets.

@goz
Created March 18, 2010 12:37
Show Gist options
  • Save goz/336300 to your computer and use it in GitHub Desktop.
Save goz/336300 to your computer and use it in GitHub Desktop.
def show
prawnto :prawn => { :page_size => 'A4',
:left_margin => 40,
:right_margin => 30,
:top_margin => 40,
:bottom_margin => 30},
:filename => "invoice_{@transaction.id}_customer_{@transaction.customer_id}.pdf"
render :layout => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment