using subdomains in rails code example Example: rails subdomain get '/games/:id', to: 'games#show', constraints: { subdomain: 'app' }