On 15 Mar 2011, at 04:03, Bhasker Harihara <harihara.bhas...@gmail.com> wrote:

> Hi All,
> 
> My requirement is as follows,
> 
> 1.  Each company (have their own set of users and authentication). Expect 
> around 3000 user for each company.
> 2.  Each user should be able to view their companies private pages and the 
> public pages of other companies
> 3.  Then I have some set of public pages which can be viewed by every user 
> without any authentication
> 
> I have developed the following,
> 
> 1.  Several static pages (which all public can view without authentication).  
> This is done with few controllers, menu, sub-menus, blueprint css and html. ( 
> with ror as the framework ).  
> 2.  A login system, for each user it has login id, company id and password. I 
> am using MySQL as DB.
>     a.   The user is unique only along with the company id.
> 3.  Profile page can be edited by the user.
> 
> Want to enhance this system to meet my requirements.
> 
> I have following questions also,
> 
> 1.  Should I have a separate DB for each company in the name of company id.
I wouldn't bother. 

> 2.  Should I have a separate subdomain (company id) and controller (company 
> id) for each company.
A separate subdomain seems like something companies would like to have. That 
doesn't require a different controller though. 

> 3.  Is it possible for each company to have their own website and for 
> particular services point to the subdomain in my website.
> 4.  If the above is possible, will there be a problem if website uses php, 
> java, etc.
> 
I'm not entirely sure what you mean. Obviously they can have their own website 
written in whatever they want that links to their part of your website. The 
complication will be in the level of integration. For example if their website 
is just a set of public pages and you are hosting some service for them then 
that should be easy, but if their website also has a logged in area then they'd 
probably want single signon and all that sort of stuff

Fred

> I have only 2 months of experience in web development and ror, so please be 
> elaborate in your replies.
> 
> Thank you very much.
> 
> Warm Regards,
> Bhasker.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to