Using Rails 1.1.6, engines 1.1.4, and either LoginEngine 1.0.2 or trunk,
see a bunch of errors running user_controller_test.rb, along the lines
Exception: undefined method
redirect_to_stored_or_default' for #<UserController:0x4e039a8> /cygdrive/c/dev/src/eclipse/AuthEngine2/config/../vendor/plugins/login_engine/app/controllers/user_controller.rb:25:inlogin’
I’m a little fuzzy on how that method (which is defined in
lib/authenticated_system.rb) should have been available to
anyway. But it doesn’t seem to be anymore.
What might have changed in engines or (more likely, I’m guessing) Rails
On Fri, 18 Aug 2006 16:32:09 +0100, Jon L. wrote:
On 18/08/06, Jay L. removed_email_addres[email protected] wrote:
Using Rails 1.1.6, engines 1.1.4, and either LoginEngine 1.0.2 or trunk, I
see a bunch of errors running user_controller_test.rb, along the lines of:
Exception: undefined method `redirect_to_stored_or_default’ for
Figured out what was causing this. I was testing in an empty
and though I’d added Engines.start to environment.rb, I hadn’t added
“require ‘login_engine’” to controllers/application.rb. So controllers
weren’t getting the AuthenticatedSystem methods.
Should user_controller_test perform that require, so it doesn’t depend
the application? I think maybe it should…
Do you have any other engines installed?
Please check against login_engine/branches/rb_1.0.
If there is still a problem, then please file a bug: