Using Subdomains in Rails Apps
This article will show you how to use URLs like http://photosByBetty.fancysite.com instead of http://www.fancysite.com/artists/photosByBetty in your Rails application.
Examples of where you might want to do this include blogs for site members, galleries for artists, chapters of a non-profit organization, teams of a sports league, or even different retail locations for a store. Using subdomains for these types of site delineations allows URLs to be shorter and have a more professional appeal. Taken further, it can also provide an opportunity to to make each subdomain site look customized while running from the same application code. Read more »
Comments(5)