New install of ruby 1.8.7, new install of rails 2.2.2, undefined method 'pick_template'


#1

How can a fresh install of ruby, gem, rail, lead to such an ‘in your
face’ failure?

In the directory newly created by the rails command, I ran ‘script/
server’ and I got:

** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/module/aliasing.rb:33:in alias_method': undefined methodpick_template’ for class
ActionView::TemplateFinder' (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/core_ext/module/aliasing.rb:33:inalias_method_chain’

yadda,
yadda,
yadda

Anyone have a clue as to what is going on?


#2

Nevermind. I think this might be a Netbeans artifact.


#3

(adding in case anyone runs into this in the future.)
Your active-scaffold needs to be updated. you need to blow away the old
one and add the correct version for rails 2.2.
You need to delete /vendor/plugins/activescaffold directory. Next, in
your command line, enter:
script/plugin install
git://github.com/activescaffold/active_scaffold.git -r ‘rails-2.2’ # add
–force if necessary
Next, add:
script/plugin install git://github.com/ewildgoose/render_component.git
-r rails-2.2