User_controller functional tests failing

I believe I have setup and configured both the login and user engines
correctly, yet when I run the user_controller.rb functional test in
either engine I get the following…

C:/rails/login_user_test/vendor/plugins/user_engine/app/controllers/user_control
ler.rb:41: undefined method edit' for classUserController’
(NameError)
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in re quire__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inre
quire’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_suppo
rt/dependencies.rb:214:in require' from C:/rails/login_user_test/config/../vendor/plugins/engines/lib/depen dencies_extensions.rb:59:inrequire_or_load’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_suppo
rt/dependencies.rb:22:in depend_on' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_suppo rt/dependencies.rb:178:inrequire_dependency’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_suppo
rt/dependencies.rb:178:in `require_dependency’
from
vendor/plugins/user_engine/test/functional/user_controller_test.rb:
2

Please advise. Thanks for you time.
-Britton

Britton Nielsen wrote:

I believe I have setup and configured both the login and user engines
correctly, yet when I run the user_controller.rb functional test in
either engine I get the following…

C:/rails/login_user_test/vendor/plugins/user_engine/app/controllers/user_control
ler.rb:41: undefined method edit' for classUserController’
(NameError)

This error indicates you are trying to load user_engine before
login_engine. user_engine tries to setup an alias for the edit action
and it errors when that action hasn’t been loaded yet. Make sure your
config/environment.rb has:

Engines.start :login, :user

Tim Greiser wrote:

This error indicates you are trying to load user_engine before
login_engine. user_engine tries to setup an alias for the edit action
and it errors when that action hasn’t been loaded yet. Make sure your
config/environment.rb has:

Engines.start :login, :user

I checked and this is what I have in my config/environment.rb. I am
also experiencing the sames issues you posted about in “Engine.start
order (user_engine)”.

Thanks,
Britton

Some other people have reported this error (engines not loading
properly)… I’m looking into it tonight.

  • james

James A. wrote:

Some other people have reported this error (engines not loading
properly)… I’m looking into it tonight.

  • james

Thanks

These problems are caused by a slightly old version of the UserEngine

You’ll probably want to update the engines plugin at the same time
(see earlier post on this list). Let me know if the problems continue.

  • james

oops - my bad:

http://opensvn.csie.org/rails_engines/user_engine/tags/rel_1.0.1

  • james

James A. wrote:

These problems are caused by a slightly old version of the UserEngine

You’ll probably want to update the engines plugin at the same time
(see earlier post on this list). Let me know if the problems continue.

  • james

The latest is 0.9.0 or 1.0.0?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs