Multiple domains on a single rails app
- by Anant
This is the first time I'm creating an app using Ruby on Rails.
I would like to switch the database depending on the site which is loaded. With php I used to do a simple strpos on http host, and set the database name depending on that. How can I do this with rails?