Multiple domains on a single rails app
Posted
by Anant
on Stack Overflow
See other posts from Stack Overflow
or by Anant
Published on 2010-03-29T16:57:23Z
Indexed on
2010/03/29
17:23 UTC
Read the original article
Hit count: 350
ruby
|ruby-on-rails
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?
© Stack Overflow or respective owner