if you have something like this in environment.rb:
module LoginEngine
config :login_page, {:controller => '/user', :action => 'login'}
end
... then the UserEngine should respect that.
HTH
- james
On 5/25/06, Kevin Ansfield <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I ran into a bit of a problem recently with the UserEngine and nested
> controllers. The issue was that it got itself into an endless
> redirection loop whenever it tried to take the user to the login screen
> from a nested controller, it was trying to redirect to /admin/user/login
> instead of /user/login.
>
> To fix the issue I replaced the login redirect in authorized_system.rb
> to the following:
>
> redirect_to LoginSystem.config(:app_url) + "/user/login"
>
> This fixed the issue but is there a better way to do this?
>
> Kev
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> engine-users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>
--
* J *
~
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org