Rails アプリに PDF 出力を実装して、それを Heroku で動かすまでの作業メモ。 プロジェクトを作成 rails new pdf_sample --skip-bundle gem は vendor/bundle にインストールしたいから、bunele install はスキップして後でやる。 Heroku には git を使ってデプロイするので、git リポジトリも作成しておく。 git init git add . git commit -m "Initial commit" wicked_pdf と wkhtmltopdf-binary-11 をインストール PDF 出力には wicked_pdf を使う。 wicked_pdf は wkhtmltopdf に依存しているので、wkhtmltopdf-binary-11 も使う。 bundler で wkhtmltopdf-
![PDF を出力できる Rails アプリを作成して Heroku で動かす - present](https://cdn-ak-scissors.b.st-hatena.com/image/square/84f4369df24ab0ae2470b82c43bfff1a321eed18/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fg%2Fgriefworker%2F20140313%2F20140313204229.png)