Have looked for a solution for 2 days now and am beating my head against the wall. I have tried both the normal authlogic build and the fork
authlogic or ‘authlogic’, :git => ‘git://github.com/odorcicd/authlogic.git’, :branch => ‘rails3’
I have everything working except for when I create a UserSession it will not take the current_account details, so I”m left with every login will allow you to log into any of the subdomains. I can’t seem to find a solution for this issue
def new
@user_session = @current_account.user_sessions.new
end
I think this is what you are looking for (from Not able to set a current_user using Authlogic on Rails 3.0.1)