I'm having issues with AuthLogic and current_user.
I have a Flex4 application using the Cairngorm framework as the front-end, and Ruby On Rails as the external one.
I can log in through the browser and use only ROR. However, when I try to execute it through the Flex4 application, it will work with the error the first time, but work the second time.
What happens is inside user_sessions_controller.rb I have a call
self.current_user.to_xml;
The first time the create action is called, the current_user object returns nil. The second time I call it (without restarting the server or browser), it will be the correct current user.
So this makes me think that current_user is set sometime after the render command inside my create action.
If I need my rails controller to return the current user to the create action, how would I do it?
source share