我们有一些 PDF 生成代码在开发环境中运行良好,但是当我们尝试在生产环境中渲染它时,Rails 显示错误:
***************WICKED***************
Rendered invoices/show.pdf.haml within layouts/invoices_pdf.pdf (8.8ms)
Completed 500 Internal Server Error in 73ms
ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
尝试将 application.css 资产包含在以下内容中失败:
!!!
%html
%head
%meta{"http-equiv"=>"content-type", :content=>"text/html; charset=utf-8"}
= wicked_pdf_stylesheet_link_tag "application"
%body
.container
= yield