Rails 3 PDFKit responds with format=pdf for every request after responding with pdf once
I append .pdf to a view, e.g. http://0.0.0.0:3000/users/edit/10024.html
That page renders as a PDF. But then every page afterwards also renders as PDF, regardless of whether I append .pdf
or .html
or not开发者_如何学Pythonhing to the end of the url. I'm not even sure how to debug this problem.
Looks like a bug in PDFKit: https://github.com/jdpace/PDFKit/issues#issue/66
精彩评论