mirror of
https://github.com/lloeki/tilt-pdf-rails.git
synced 2025-12-06 02:24:42 +01:00
doc fixes
This commit is contained in:
parent
e2c2846b81
commit
6a9fa9bbf3
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ Integrates PDF generation into a Tilt flow
|
|||
|
||||
This gem depends on PDFKit, which in turn requires `wkhtmltopdf`. It is recommended to use the statically compiled version of the latter, as it is built against a patched QT that supports more features.
|
||||
|
||||
## Usage as a Tilt
|
||||
## Usage as a Tilt template
|
||||
|
||||
Add `tilt-pdf` to your Gemfile. Also add any template engine you may optionally want, such as `less` or `slim`.
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ require 'tilt-pdf'
|
|||
pdf = Tilt.new('foo.rpdf').render()
|
||||
```
|
||||
|
||||
## Rails integration
|
||||
## Rails and ActionView integration
|
||||
|
||||
Require `tilt/pdf/rails` if you want to set up and register `tilt-pdf` as an ActionView template handler. You can do it in an initializer, or straight from the Gemfile:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue