Can anyone please expain me How do I have sub-domains and Multi-tenant database for each sub domain in Rails Application.
For an Example:-
I am having Multi-Tenant database for year wise record of hotels, but my requiremnt :-
star.hotel.com => multi-tenant database
blue.hotel.com => multi-tenant database
Check one more time :-
2011 // tenant1
I covered how you can do this with the Apartment gem as well as from scratch in these episodes: https://gorails.com/series/multitenancy-crash-course
Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.