Rails Subdomain

  get '/games/:id', to: 'games#show', constraints: { subdomain: 'app' }
Lioruby