Subdomain in Rails3

Hi,

I would like to have something like basecamp (subdomain.basecamphq.com) for my project. How can achieve that? Are there any gems that help me do that? Also how do I tackle it on a dev machine where I only have access localhost:3000 even if I use the hosts file, I cannot use the port number, any idea/suggestions would help. TIA.

Nevermind the dev machine hosts part figured that one out :slight_smile: thanks to Alex Katebi

Manoj,

Changing the hosts file for subdomains will only work on the machines with hosts file modified. In other words it is for the client machines.

Thanks,

Alex

Or, you could point your browser to http://lvh.me:3000/. Or http://smackaho.st:3000/. Both of those are wildcard localhost redirectors that will resolve any subdomain to 127.0.0.1.