Forum: Rails Engines How to install the new engines plugin in edge rails?

F1e1789ff9e7fc3032fa6cf15382a1e8?d=identicon&s=25 Juanma Cervera (jmcervera)
on 2007-01-18 10:55
I am a newbie to engines, I will need some advices.
I am developing a new applications with edge rails.
I pretend to use datebocks engine, and I will try to install first the
new engines plugin.
Is this ok?

I asm trying to install the plugin with the command:

./script/plugin install
ttp://svn.rails-engines.org/engines/branches/rb_1.2

but I have this error with the installation.
+ ./rb_1.2/CHANGELOG
+ ./rb_1.2/MIT-LICENSE
+ ./rb_1.2/README
+ ./rb_1.2/UPGRADING
+ ./rb_1.2/about.yml
+ ./rb_1.2/generators/plugin_migration/USAGE
+ ./rb_1.2/generators/plugin_migration/plugin_migration_generator.rb
+ ./rb_1.2/generators/plugin_migration/templates/plugin_migration.erb
+ ./rb_1.2/generators/upgrade_engines/USAGE
+
./rb_1.2/generators/upgrade_engines/templates/upgrade_engines_migration.rb
+ ./rb_1.2/generators/upgrade_engines/upgrade_engines_generator.rb
+ ./rb_1.2/init.rb
+ ./rb_1.2/install.rb
+ ./rb_1.2/lib/engines/deprecated_config_support.rb
+ ./rb_1.2/lib/engines/plugin.rb
+ ./rb_1.2/lib/engines/plugin_list.rb
+ ./rb_1.2/lib/engines/plugin_migrator.rb
+ ./rb_1.2/lib/engines/rails_extensions/active_record.rb
+ ./rb_1.2/lib/engines/rails_extensions/dependencies.rb
+ ./rb_1.2/lib/engines/rails_extensions/migrations.rb
+ ./rb_1.2/lib/engines/rails_extensions/public_asset_helpers.rb
+ ./rb_1.2/lib/engines/rails_extensions/rails.rb
+ ./rb_1.2/lib/engines/rails_extensions/rails_initializer.rb
+ ./rb_1.2/lib/engines/rails_extensions/routing.rb
+ ./rb_1.2/lib/engines/rails_extensions/templates.rb
+ ./rb_1.2/lib/engines/rails_extensions.rb
+ ./rb_1.2/lib/engines/testing.rb
+ ./rb_1.2/lib/engines/version.rb
+ ./rb_1.2/lib/engines.rb
+ ./rb_1.2/tasks/engines.rake
/home/jmcervera/work/myapp/vendor/plugins/rb_1.2/install.rb:4:in
`require': no such file to load -- rails/version (LoadError)
        from
/home/jmcervera/work/myapp/vendor/plugins/rb_1.2/install.rb:4
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:217:in
`run_install_hook'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:178:in
`install'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:765:in
`parse!'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:764:in
`parse!'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:475:in
`parse!'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:491:in
`parse!'
        from
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:917
        from ./script/plugin:3

I thougt that this was not a big problem. It seems only showing a
warning message based on the version of rails I use.
But then I have errors running my tests from radrails.


/home/jmcervera/work/myapp/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:267:in
`load_missing_constant': uninitialized constant RAILS::VERSION
(NameError)
  from
/home/jmcervera/work/myapp/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in
`const_missing'
  from
/home/jmcervera/work/myapp/config/../vendor/plugins/rb_1.2/init.rb:3:in
`load_plugin'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:401:in
`load_plugin'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:401:in
`load_plugin'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:185:in
`load_plugins'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:185:in
`load_plugins'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:105:in
`process'
  from
/home/jmcervera/work/myapp/config/../vendor/rails/railties/lib/initializer.rb:43:in
`run'
  from /home/jmcervera/work/myapp/config/environment.rb:13
  from /home/jmcervera/work/myapp/test/unit/../test_helper.rb:2
  from /home/jmcervera/work/myapp/test/unit/empleado_test.rb:1
  from
/home/jmcervera/work/.metadata/.plugins/org.radrails.rails.core/run_tests.rb:2
  from
/home/jmcervera/work/.metadata/.plugins/org.radrails.rails.core/run_tests.rb:2
  from
/home/jmcervera/radrails/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:260

Thanks
Juan M. Cervera
This topic is locked and can not be replied to.