This is a working example of subdomains in rails.