Thta was perfect, thanks Nick. OK - this is weird. The important lines are here:

> requiring file 
> '/Users/nstuart/Development/rails/frails/public/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb'
> detected Engine root, rewriting to 'app/controllers/user_controller.rb'
> checking 'login_engine' for
> /Users/nstuart/Development/rails/frails/public/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb
> --> found, loading from engine 'login_engine'
> finally loading from application: 'user_api.rb'
> checking 'user_engine' for
> /Users/nstuart/Development/rails/frails/public/../config/../vendor/plugins/user_engine/app/controllers/user_controller.rb
> --> found, loading from engine 'user_engine'
> finally loading from application:
> '/Users/nstuart/Development/rails/frails/public/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb'

Typically the problem is that when the 'require' happens, we're
getting a path either like:

1. user_controller.rb
2. app/controllers/user_controller.rb
3. /script/../config/../app/controllers/user_controller.rb
4. 
/script/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb
5. 
/Users/whoever/Development/rails/frails/public../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb

... and there doesn't seem to be rhyme nor reason as to which will
appear. Can you open a console in that application, and find the
values of RAILS_ROOT and Engines.config(:root)?

- james
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to