Quick simple fixes for it to work before Steve's patch gets pulled on
github:
init.rb:
ActionView::Base::register_template_handler 'rfpdf', RFPDF::View
should be
ActionView::Template::register_template_handler 'rfpdf', RFPDF::View
then in lib/rfpdf/view.rb:
change line 69 from
ERB.new(template).result(binding)
to
ERB.new(template.source).result(binding)
and add these methods:
def self.compilable?
false
end
def compilable?
self.class.compilable?
end
This works for me in 2.1, but I have a pretty old version of the
plugin so YMMV.