Multi-tenant Test is a test Rails 3 application for the illustrating use of the
multi_tenant plugin by Mark Connell.
A fork of the plugin is installed as a Git submodule in the
Start by cloning the
git clone git://github.com/virtualstaticvoid/multi_tenant_test.git
bundle command to install any missing gem dependancies.
Next, create the database (sqlite) and seed it with data.
rake db:migrate rake db:seed
Now, run the rails server,
And view the application in your browser using the following URL
Notice the use of
lvh.me in the URL, which resolves to
127.0.0.1. Checkout Matthew Hutchinson's blog post for details on
Thanks to [Mark Connell] for his very excellent multi-tenant Rails plugin!