Topic: Subdomains

Hi everyone smile

I'd like to create a Rails application with some separate modules. Each modules is more like another Rails application. The thing is I'd like users to authenticate on the main domain and be able to access each module with the same session, like a portal that allows users to access many applications.

So... I want my application to have subdomains, on each subdomain there'll be one module.

According to you, what is the best way to handle this?

Do I have to create only one big Rails application and deal with routes to configure some subdomains?
Or do I have to create one rails application per module and configure subdomains on my Web Hoster?

The point is that, for the first solution, the resulting Rails application would be really huge. But the "single authentication" would be very easy to handle. The second solution is the exact contrary... single authentication would be more difficult to put in place, don't you think?

So... What do you think is the best way to handle huge subdomain applications and single authentication?

Thanks for your help,
Kulgar.

Last edited by Kulgar (2011-11-22 14:43:23)