diff --git a/README.md b/README.md index 3ba24291..80970be0 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ If your wkhtmltopdf executable is not on your webserver's path, you can configur ```ruby WickedPdf.configure do |c| - c.exe_path = '/usr/local/bin/wkhtmltopdf', + c.exe_path = '/usr/local/bin/wkhtmltopdf' c.enable_local_file_access = true -} +end ``` For more information about `wkhtmltopdf`, see the project's [homepage](http://wkhtmltopdf.org/). diff --git a/generators/wicked_pdf/templates/wicked_pdf.rb b/generators/wicked_pdf/templates/wicked_pdf.rb index 965e2dd8..f5566fbd 100644 --- a/generators/wicked_pdf/templates/wicked_pdf.rb +++ b/generators/wicked_pdf/templates/wicked_pdf.rb @@ -11,20 +11,20 @@ WickedPdf.configure do |config| # Path to the wkhtmltopdf executable: This usually isn't needed if using # one of the wkhtmltopdf-binary family of gems. - # config.exe_path = '/usr/local/bin/wkhtmltopdf', + # config.exe_path = '/usr/local/bin/wkhtmltopdf' # or # config.exe_path = Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf') # Needed for wkhtmltopdf 0.12.6+ to use many wicked_pdf asset helpers - # config.enable_local_file_access = true, + # config.enable_local_file_access = true # Layout file to be used for all PDFs # (but can be overridden in `render :pdf` calls) - # config.layout = 'pdf.html', + # config.layout = 'pdf.html' # Using wkhtmltopdf without an X server can be achieved by enabling the # 'use_xvfb' flag. This will wrap all wkhtmltopdf commands around the # 'xvfb-run' command, in order to simulate an X server. # - # config.use_xvfb = true, + # config.use_xvfb = true end