私たちのプラットフォームはしばらくオンラインで、問題なく動作しています。当社のお客様は、請求書を PDF 形式でダウンロードできます。
数か月間アップグレードに取り組んできましたが、今日、「突然」、wicked_pdf と wkhtmltopdf を使用した PDF 世代以外が機能しなくなったことに気付きました...
理由はまったくわかりません。考えられるすべてをチェックしました: - ルート - 初期化子 - 宝石 - など。
実際の唯一のバージョンと同じように、すべてが問題ないようです。
Rails や Ruby のバージョンは変更していません。すべてがほとんど同じです: - Ruby 1.8.7 REE - Rails 3.0.10
私たちが得ているエラーは次のとおりです。
Rendered groups/clients/proforma.pdf.haml (103.4ms)
Sent data toto.pdf (2.7ms)
Completed 500 Internal Server Error in 6892ms
NoMethodError (undefined method `virtual_path' for text template:ActionView::Template::Text):
app/controllers/groups/clients_controller.rb:980:in `proforma'
app/controllers/groups/clients_controller.rb:976:in `proforma'
lib/include/flash_session_cookie_middleware.rb:16:in `call'
lib/include/flash_session_cookie_middleware.rb:16:in `call'
コントローラーは次のようになります。
def proforma
@request = WireRequest.where(:_id => params[:id], :status => :pending).first
respond_to do |format|
format.html {render :layout => false}
format.pdf do
unless @request.nil?"
render(:pdf => "PROFORMA_#{@request.invoice_num}", :layout => 'pdf')
end
end
end
end
何がうまくいかないのかについてのアイデアはありますか?もうアイデアはありません:(