subdominio de rieles

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