Open markmcdonald51 opened 13 years ago
I asked this a little bit ago: https://github.com/bbenezech/papermill/issues/closed#issue/14
I think this is a shame, as Papermill is such an elegant solution, and one of the reasons I have chosen to keep my projects at 2.3.8 for the moment.
Hi Benoit,
Wondering if you have this working with Rails3 yet.
I just tried to add it into a rails3.01 project and got this when I do 'rails g' (looking for the papermill generator)
k@mark-solo:~/rails_apps/rails3/hoven$ rails g DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from <top (required)> at /home/mark/rails_apps/rails3/hoven/config/application.rb:7) /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.1/lib/active_record/base.rb:1016:in'
method_missing': undefined method
before_post_process' for #Class:0x000000035381f0 (NoMethodError) from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill/papermill_asset.rb:9:in<class:PapermillAsset>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill/papermill_asset.rb:1:in
<top (required)>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:inrequire' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
block in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:inblock in load_dependency' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:inload_dependency' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill.rb:26:in<top (required)>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in
require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:inblock (2 levels) in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in
each' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:inblock in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in
each' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:inrequire' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler.rb:112:in
require' from /home/mark/rails_apps/rails3/hoven/config/application.rb:7:in<top (required)>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.1/lib/rails/commands.rb:15:in
require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.1/lib/rails/commands.rb:15:in<top (required)>' from script/rails:6:in
require' from script/rails:6:in `Hope all is well. Mark