ensure_all_registered_plugins_are_loaded!

Hi,
I installed Subtruct and Engines 2.0 into a Rails 2.02 project and it
fails to find plugins when I do a script generate plugin_migrations

Is that depricated in 2.02?

Thanks in advance

TW Scannell

C:\rails_projects\Substruct>ruby script/generate plugin_migration
C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/
lib/rails/
plugin/loader.rb:143:in `ensure_all_registered_plugins_are_loaded!':
Could not l
ocate the following plugins: engines, file_column, and * (LoadError)
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/rails/plugin/loader.rb:36:in `load_plugins'
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/initializer.rb:189:in `load_plugins'
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/initializer.rb:105:in `process'
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/initializer.rb:49:in `send'
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/initializer.rb:49:in `run'
        from C:/rails_projects/Substruct/config/environment.rb:14
        from C:/Program Files/Common Files/ruby/lib/ruby/site_ruby/1.8/
rubygems/
custom_require.rb:27:in `gem_original_require'
        from C:/Program Files/Common Files/ruby/lib/ruby/site_ruby/1.8/
rubygems/
custom_require.rb:27:in `require'
        from C:/Program Files/Common Files/ruby/lib/ruby/gems/1.8/gems/
rails-2.0
.2/lib/commands/generate.rb:1
        from C:/Program Files/Common Files/ruby/lib/ruby/site_ruby/1.8/
rubygems/
custom_require.rb:27:in `gem_original_require'
        from C:/Program Files/Common Files/ruby/lib/ruby/site_ruby/1.8/
rubygems/
custom_require.rb:27:in `require'
        from script/generate:3

Hi,
I installed Subtruct and Engines 2.0 into a Rails 2.02 project and it
fails to find plugins when I do a script generate plugin_migrations

Is that depricated in 2.02?

It looks like it's trying to find a plugin called *, which probably
isn't a good idea.
What does your config.plugins (in environment.rb) say ? Do you have
the engines & file_column plugins in you vendor/plugins ?

Frerd

Yes indeed, that was the problem.
I installed substruct, which is a 1.2.5 Rails app, into a 2.02
environment. The environment.rb file had a line that said something to
the effect of config plugins.load ['activemerchant', 'engines', '*"]

I assume that the "*" was OK in 1.2.5 but not 2.02

I am still fighting with substruct in 2.02, but making progress
so far I have:
installed engines 2.0
removed active_merchant as a plugin and installed the gem
removed ar_fixture as a plugin and installed the gem(I think I did
that, I'm not home now)

So far, I at least go script/generate plugins_migration to work
(mostly)

I will post in the substruct google groups page if and when I get it
to work.

Thanks for your help and anyone with insite in this area would be
appreciated.

twscannell gmail com

Yes indeed, that was the problem.
I installed substruct, which is a 1.2.5 Rails app, into a 2.02
environment. The environment.rb file had a line that said something to
the effect of config plugins.load ['activemerchant', 'engines', '*"]

I assume that the "*" was OK in 1.2.5 but not 2.02

On 2.0.x you need to use :all to say 'load all the other plugins
here'. As far as I know there was no way to do something similar in
1.2 (or else the option to say :all wouldn't have been added)

Fred