title: Rails: choose between different root_to routes based on domain
body: <p>My idea is that if you go to www.my-website.com I want display a "choose country" landing page with links to each of my country based websites like www.my-website.dk, www.my-website.de etc. etc.</p>
  
  <p>I made a routes.rb like this:</p>
  
  <pre><code>MyApp::Application.routes.draw do
    constraints subdomain: /\Awww\b/ do
      apipie # For API documentation, see initializers/apipie.rb
      draw :api_v1_v2_v3
      draw :api
  
      constraints -&gt;(request) {request.host =~ /my-website\.com/ } do
        root to: 'my_website_dot_com#landing_page' # anyone going to http://www.my-website.com/ will get this action
      end
  
      root to: 'my_website#front_page'
  
      get 'sitemap', to: 'my_websiteouncle#sitemap' # anyone going to http://www.my-website.de/ or http://www.my-website.dk/ etc. will get this action
    end
  end
  </code></pre>
  
  <p>Problem is, I cannot have multiple <code>root_to</code> with rails 4.2 so how can I change the routes.rb to achieve this behaviour?</p>