Test Rails 3 application for Mark Connell's multi_tenant plugin
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
.gitmodules
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru

README.markdown

Multi-Tenant-Test

Introduction

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 vendor/plugin/multi_tenant directory.

Getting Started

Start by cloning the multi_tenant_test repository.

git clone git://github.com/virtualstaticvoid/multi_tenant_test.git

Run the bundle command to install any missing gem dependancies.

bundle install

Next, create the database (sqlite) and seed it with data.

rake db:migrate
rake db:seed

Now, run the rails server,

rails server

And view the application in your browser using the following URL

http://test1.lvh.me/properties

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 lvh.me.

Thanks

Thanks to [Mark Connell] for his very excellent multi-tenant Rails plugin!