Sharing a database


I’m creating two rails applications lets call them appA and appB. They will each be running on a subdomin like

I need a way to share the User table so the login/passwords will work
of both. I’d also like to keep the app DRY and not have to
repeat the Account Controller in each app. My first thought was to
create a 3rd application and subdomin for account stuff only. So it
would be and each application would use its User

What do you think? Has anyone had the same problem?

Jonathan Spooner

We had a similar situation and ended up going down the route of having a 3rd authentication application.


Either openid or activeresource (and indeed a third application) could do the job here.

Best regards

Peter De Berdt