spree/spree_print_invoice — pull request #10 by lilleyt (2012-06-18 18:30:52+00:00)
Title: Add respond_to to controller so it doesn't throw 406

Fixes #9

When the PDF file gets requested, the Accept header specifies PDF, but the
controller didn't have that as a response type, so it would throw a 406 not
acceptable to the client. This patch registers PDF as a response type for
the controller.