문제

How to do subdomains & seperated databases for a rails app as shown in tutorial below for php

I am a newbie with ruby & ruby on rails as well so I would like now that is any thing possible which shown in this tutorial by anatgarg in php

  1. subdomains
  2. multiples databases
  3. database switching based on subdomain
도움이 되었습니까?

해결책

  1. You can see screencasts @ Railscasts episode #221 Subdomains in Rails 3
  2. Actually, I never use multiples databases, but I have try use multiples schemas with postgresql, see @ Railscasts episode #389 Multitenancy with PostgreSQL pro
  3. You can use gem apartment for switching schema based on subdomain

I can't explain one by one because it would be too long to be explained. Hope this help

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top