proper model for a multi site rails app

Posted by JeffTaggarty on Programmers See other posts from Programmers or by JeffTaggarty
Published on 2011-01-08T06:50:13Z Indexed on 2011/01/08 6:58 UTC
Read the original article Hit count: 200

Filed under:

Hi Guys, I am not sure if this is correct place to ask this question. My apologies if it is not.

I need to create a web app where people will sign up, call it main-app.com, when they sign up my code will generate a usersite.my-app.com, they will login and only be able to manage their mini site. My question is, is it correct to model this out by creating a table for site, a table for user, users belong to site and site has many users. Then I should create a content table that belongs to user AND site?

is that right?

Thanks

  • Jeff

© Programmers or respective owner

Related posts about ruby-on-rails