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 class
UserController’
(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:in
re
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:in
require_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:in
require_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 class
UserController’
(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.
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 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.
The latest is 0.9.0 or 1.0.0?