Forum: Rails Engines because I have east error?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
02d2caa0eca64f3e01686db06c2b5b3e?d=identicon&s=25 javier barcena (Guest)
on 2007-05-22 04:22
(Received via mailing list)
Hello James. a question. because I have east error. stick the code
therefore you help me. thanks. dummies

javier@dummies:~/rails_app/martina$ script/generate plugin_migration
      create  db/migrate
      create  db/migrate/001_login_engine_to_version_1.rb
javier@dummies:~/rails_app/martina$ rake  db:migrate
(in /home/javier/rails_app/martina)
== LoginEngineToVersion1: migrating
===========================================
== InitialSchema: migrating
===================================================
rake aborted!
Object is not missing constant LoginEngine!

(See full trace by running task with --trace)
javier@dummies:~/rails_app/martina$ script/generate plugin_migration
      exists  db/migrate
      create  db/migrate/001_login_engine_to_version_1.rb
javier@dummies:~/rails_app/martina$ rake db:migrate
(in /home/javier/rails_app/martina)
== LoginEngineToVersion1: migrating
===========================================
rake aborted!
undefined method `vendor' for Rails:Module

(See full trace by running task with --trace)
javier@dummies:~/rails_app/martina$ rake db:migrate
(in /home/javier/rails_app/martina)
== LoginEngineToVersion1: migrating
===========================================
== InitialSchema: migrating
===================================================
rake aborted!
Object is not missing constant LoginEngine!

(See full trace by running task with --trace)
javier@dummies:~/rails_app/martina$ rake db:migrate --trace
(in /home/javier/rails_app/martina)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== LoginEngineToVersion1: migrating
===========================================
== InitialSchema: migrating
===================================================
rake aborted!
Object is not missing constant LoginEngine!
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:240:in
`load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:470:in
`send'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:470:in
`const_missing'
/home/javier/rails_app/martina/config/../vendor/plugins/login_engine/db/migrate/001_initial_schema.rb:3:in
`real_up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`migrate'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:335:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:330:in
`each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:330:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:297:in
`up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:288:in
`migrate'
/home/javier/rails_app/martina/config/../vendor/plugins/engines/lib/engines/plugin_migrator.rb:18:in
`migrate_plugin'
/home/javier/rails_app/martina/config/../vendor/plugins/engines/lib/engines/plugin.rb:212:in
`migrate'
./db/migrate//001_login_engine_to_version_1.rb:3:in `real_up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`migrate'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:212:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:335:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:330:in
`each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:330:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:297:in
`up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:288:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/databases.rake:4
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/bin/rake:16:in `load'
/usr/bin/rake:16
javier@dummies:~/rails_app/martina$



################the end###################
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2007-05-22 21:38
(Received via mailing list)
Hi Javier,

See my previous emails. The login engine WILL NOT WORK with Rails 1.2,
unless you fix it yourself.


James
02d2caa0eca64f3e01686db06c2b5b3e?d=identicon&s=25 javier barcena (Guest)
on 2007-05-22 22:04
(Received via mailing list)
Ok. .sorry.. ,i stay very .. confius
;)
 gracias james




2007/5/22, James Adam <james.adam@gmail.com>:
02d2caa0eca64f3e01686db06c2b5b3e?d=identicon&s=25 javier barcena (Guest)
on 2007-05-23 06:39
(Received via mailing list)
now use rails 1.1.6 with engine 1.2 but the migrations no working. .
help me
thanks.

2007/5/22, James Adam <james.adam@gmail.com>:
A734a55f2acf2b4d230ca73e16881b7a?d=identicon&s=25 Trevor Rowe (Guest)
on 2007-05-23 17:40
(Received via mailing list)
Correct me if I am wrong, but I don't believe Engines 1.2 works with
Rails 1.1.6.

Trevor
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2007-05-23 19:38
(Received via mailing list)
Hi again Javier,

If you want to use the login engine, you need to install Rails 1.1.6
and Engines 1.1.4 (from a tag, see the SVN repository). Unless you do
this, you won't be able to get the login engine to work.

However, I'd advise you to investigate other alternatives.

Engines 1.2 + Rails 1.2 + login engine == broken
Engines 1.1.4 + Rails 1.2 + login_engine == broken
Engines 1.2 + Rails 1.1.6 + login_engine == broken
Engines 1.1.4 + Rails 1.1.6 + login_engine == OK.

I think we've covered this enough on the list. To avoid unnecessary
noise, please post any further questions directly to me.

Thanks,

James
This topic is locked and can not be replied to.