Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Multitenancy with Scopes

#388 Multitenancy with Scopes pro

Oct 20, 2012 | 12 minutes | Active Record, Authorization
A multi-tenant application can be difficult to implement because the data for each tenant must be completely separate. Here I show how to do this using subdomains and default scopes in Active Record.