首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误的wkhtmltopdf路径: bundler:未找到命令:哪个

错误的wkhtmltopdf路径: bundler:未找到命令:哪个
EN

Stack Overflow用户
提问于 2016-12-28 02:36:20
回答 0查看 847关注 0票数 0

我在Windows上的Rails中使用wkhtmltopdf gem,但它不起作用。我得到这个错误:"Bad wkhtmltopdf's path: bundler: command not found: this“。它适用于exe,但我不想使用exe_path,我只想使用gem。这是我的wkhtmltopdf配置文件:

代码语言:javascript
复制
# WickedPDF Global Configuration
#
# Use this to set up shared configuration options for your entire application.
# Any of the configuration options shown here can also be applied to single
# models by passing arguments to the `render :pdf` call.
#
# To learn more, check out the README:
#
# https://github.com/mileszs/wicked_pdf/blob/master/README.md

WickedPdf.config = {
  # Path to the wkhtmltopdf executable: This usually isn't needed if using
  # one of the wkhtmltopdf-binary family of gems.
  # exe_path: 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'
  
}

我还使用了gem 'wicked_pdf‘gem 'wkhtmltopdf-binary’

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41350424

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档