Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Apr 11, 2011
1 parent cdc2f2e commit e76a9db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/guides.rb
Expand Up @@ -23,7 +23,6 @@
get :book, :provides => :pdf do
content_type :pdf
@guides = Guide.all(:order => "position")
PDFKit.configuration.wkhtmltopdf = "aaaaaaaaaa"
html = render 'guides/book', :layout => false
html.gsub!(/href="/, "href=\"http://www.padrinorb.com")
kit = PDFKit.new(html, "footer-right" => "Page [page] of [toPage]",
Expand Down
4 changes: 4 additions & 0 deletions config/boot.rb
Expand Up @@ -30,4 +30,8 @@
require 'padrino-contrib/helpers/assets_compressor'
require 'open-uri'

# Fix for my Passenger Environment
PDFKit.configuration.wkhtmltopdf = "/usr/local/bin/wkhtmltopdf"

# Boot Padrino
Padrino.load!

0 comments on commit e76a9db

Please sign in to comment.