authentification and two controllers.


I am using the acts_as_authenticated plugin. When installed it creates
a user model and a account controller which handles signup, login and
logout which is very nice.
The problem I'm having is that I want the user to be able to login
from the main page of my application which is handled by a different
controller, lets call it the main controller.

Is there an elegant way of using the account controller login logic
instead without moving it to my main controller. I really would like
to keep them separate.

Thanks in advance.

i don't really understand your request, but the only thing you need is
to target the good action with your login form. and you can have as
much form as you want in your page.
or maybe you want to use 'redirect_to' in your main controller to
redirect action to another one.