This is really more of a question for the Rails list. But one thing I
usually forget when rendering PDF actions is to add the
application/pdf MIME type in an initializer:
Mime::Type.register "application/pdf", :pdf
-be
Recent versions of prawn depend on the PDF::Reader gem, which creates a
namespace clash between the PDF module from that and the PDF class
created when you register a mime type in rails.
I hadn't considered this side effect before, but I have run into the
same issue with the CSV library in the 1.9 standard lib.
In the CSV case I just serve CSV files with an excel mime type, but I'm
not sure what the best idea is in this case.
-- James Healy <ji...@deefa.com> Thu, 12 Aug 2010 00:05:47 +1000