Can I share a database between two different rails apps?
If not, has anyone any suggestions for this scenario:
I have various connected sites (the following site names are made up - I have no idea if they actually exist....)
prettyshoes.com
prettyhats.com
...
prettybelts.com
Each site has it's own rails app running it and has the usual db backend of items, prices, articles, blah, blah.
However, the 'pretty group' has a membership and community. If a visitor was visiting prettyshoes.com, they could register and opt in for the newsletter, etc. They could also opt in to receive the newsletter from prettyhats.com, prettybelts.com and so on.
In PHP I would simply connect the login area on each site to the same db. They share the same usernames, the same information, the same options, etc. A user could login on any of the 'pretty' sites and adjust their settings, details and so on.
In fact, it is pretty darned simple using my PHP knowledge and I would not give it a second thought of how to set it up, etc.
Now I am converting to RoR as I see the immense benefits, I am stuck as to how I would implement this very simple 'shared' db between the related sites.
Any thoughts appreciated and if that made no sense to anyone, let me know and I can try again :)