Рейлс поддомен

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