views:

50

answers:

0

I'm using Authlogic to for my user authentication and want to offer our users the option of registering with a traditional user name/password or OpenID and/or Facebook Connect.

The problem I'm running into is that I need to save some additional user attributes that are not part of my User model. All that information is lost when the user returns to our site from his/her OpenID provider.

I'd also like to be able to do the saving inside of a transaction, but wrapping the save block inside of a transaction block doesn't seem to work (the save of the User model is not rolled back if one of its "child" attribute models fails).

Does anyone have any tips on how I might be able to do this?