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 "subdomain-fu", "~> 0.4.0"