Rails: best practice to scope queries based on subdomain?

后端 未结 5 1489
傲寒
傲寒 2020-12-24 04:17

I\'m working on a Rails (currently 2.3.4) app that makes use of subdomains to isolate independent account sites. To be clear, what I mean is foo.mysite.com should show the f

5条回答
  •  佛祖请我去吃肉
    2020-12-24 04:20

    We've been using https://github.com/penguincoder/acts_as_restricted_subdomain for the last 2 years, but it only works with Rails 2.3.

    We are currently trying to upgrade (and gemmify) the plugin to work with Rails 3. I'm curious on how you worked your problem out.

提交回复
热议问题