Skip to main content

How do I have SubDomain and Multi-Tenant in Rails project.

Rails • Asked by Gourav Lele

Gourav Lele (830 XP) on

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 :- => multi-tenant database => multi-tenant database

Thank You

Gourav Lele (830 XP) on

Check one more time :- =>
2011 // tenant1
2012// tenant2
2013// tenant3 =>

Chris Oliver (162,220 XP) on

I covered how you can do this with the Apartment gem as well as from scratch in these episodes:

Gourav Lele (830 XP) on

Thank you Chris I will try to do the same, but getting error on root page. is redirected if account is not present and its not working please assist me.

Login or create an account to join the conversation.