Sub Domains using Routing?

Hello,

Let us say when a user signs up, I dedicate a sub domain to it. So to
do this do I need to use routing or something else? Will I be able to
test it on ‘localhost’? Will their be server settings that I’ll need
to change?

Any help or link to tutorial or documentation would be appreciated.

With Warm Regards,
Thanking You,
Prateek Saxena

Hi,

I just saw this one yesterday, it looked fairly good:
http://s2.diffuse.it/blog/show/49_Subdomain+routing+with+rails

Cheers,
Jan