Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

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

Rails • Asked by Gourav Lele

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

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

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

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.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.