Vincent Ritter

Ruby on Rails questions:

  1. Any suggestion on a multi-tenancy database flow? For example, create a new database per user account (can't remember what this is called - I think Basecamp do this?), or should I reference data by just the user_id (I did this for Simple Schedule)? I'm sure I've seen something like this in a gem - can't remember what it's called.
  2. Is there a library that can accept multiple subdomains and route the app correctly? So for example if I had, this will go to my main Rails app and in turn load user data for "subdomain" etc. Then another subdomain will load another user and so on. Just like Slack would load a different login screen.

Any help or pointers would be appreciated 😄