…"). otherwise the method of to_pdf will gets truncated since pdf is a binary stream, I got this problem in Ruby 1.8.6 and Rails 1.2.3.
Too many issues cropping up around that feature.
… if the binary file's location is not explicitly stated in config.
…ve to memoize result of request_path_is_pdf?
For the moment, the only possible condition is :only which allow to restrict pdf generation to certain routes.