README.md in prawn_cocktail_rails-0.3.1 vs README.md in prawn_cocktail_rails-0.3.2
- old
+ new
@@ -1,8 +1,8 @@
# PrawnCocktailRails
-[](https://travis-ci.org/#!/barsoom/prawn_cocktail_rails/builds)
+[](https://github.com/barsoom/prawn_cocktail_rails/actions/workflows/ci.yml)
Ruby on Rails integration for [PrawnCocktail](http://github.com/barsoom/prawn_cocktail).
## Usage
@@ -18,12 +18,14 @@
send_pdf document
end
end
```
-You can change disposition with `send_pdf(document, disposition: "inline")`, without the option it will default to `"attachment"`.
+The default [disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) is `"attachment"`, meaning it should be downloaded rather than opened inline in the browser.
-It configures PrawnCocktail to look for its views in `app/views/documents`.
+You can change disposition to `"inline"` with `send_pdf(document, disposition: "inline")`.
+
+PrawnCocktailRails configures PrawnCocktail to look for its views in `app/views/documents`.
It also adds `app/documents/helpers` to the Rails autoload path so you can put your PrawnCocktail helpers there.
We suggest putting your documents in `app/documents`.