SubdomainFu is a Rails plugin to provide all of the basic functionality necessary to handle multiple subdomain applications (such as Basecamp-esque subdomain accounts and more).
Michael Bleigh
gem "sentientmonkey-subdomain-fu", "~> 0.5.6"