Skip to content

Commit

Permalink
Merge pull request #915 from weber-s/master
Browse files Browse the repository at this point in the history
[DOC] add 'locals' option to the README advanced section
  • Loading branch information
unixmonkey committed May 23, 2020
2 parents 3a3ccc0 + 914a310 commit 3120646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class ThingsController < ApplicationController
render pdf: 'file_name',
disposition: 'attachment', # default 'inline'
template: 'things/show',
locals: {foo: @bar},
file: "#{Rails.root}/files/foo.erb",
inline: '<!doctype html><html><head></head><body>INLINE HTML</body></html>',
layout: 'pdf', # for a pdf.pdf.erb file
Expand Down

0 comments on commit 3120646

Please sign in to comment.