title: Rails: link_to - passing a subdomain
body: <p>I need to create a link_to to a different subdomain.</p>
  
  <p>This is what I came up with:</p>
  
  <pre><code>= link_to "Link to Subdomain", root_path(subdomain: "abc", param1: "value1", param2: "value2")
  </code></pre>
  
  <p><br>
  It is not working though. I get redirected to:</p>
  
  <pre><code>http://lvh.me:3000/?param1=value1&amp;param2=value2
  </code></pre>
  
  <p><strong>Note:</strong> The as param passed <code>subdomain</code> is not being displayed in the url. <em>Neither as subdomain nor as parameter.</em><br><br></p>
  
  <p>Instead I want to get redirected to the following URL:</p>
  
  <pre><code> http://abc.lvh.me:3000/?param1=value1&amp;param2=value2
  </code></pre>