RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Run multiple sites in a single rails instance (a la Basecamp style)

If you run multiple, mostly identical copies of a site, you should probably be using my new plugin acts_as_restricted_subdomain. It will allow you to run one application with n subdomains all with completely segregated data. It will prevent cross pollination of data while still allowing you to administer the site in a script/console session. Session access is restricted, so users that log into one site will not be authenticated for another site. Models get automatic validations and query restrictions for finding. Controllers will display a 404 error when a site is not found. Good stuff.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in