title: Subdomains not working on local rails env
body: <p>I am currently having a major problem at developing a Ruby on Rails application. I never worked with sub-domains before, but since this project it is required to do so.</p>
  
  <hr>
  
  <p>I added every sub-domain constrain through a <code>scope</code>, but the routing doesn't work. Here is my <code>routes.rb</code>:</p>
  
  <pre><code>scope module: :frontend, subdomain: ':company_id' do
    resources :RESOURCE_NAME do
      scope module: 'MODULE_NAME' do
        [...] # Some simple routes
      end
    end
    [...]
  end
  </code></pre>
  
  <p>So, I skipped the routes since they are not really important, they are just simple <code>get</code> and <code>post</code> things.</p>
  
  <p>Now, the problem is, that every time I am calling a <code>*_path</code> method I am not redirected to the sub-domain (Since then everything worked fine with lvh.me). Every sub-domain (I have some more) are working when I am visiting them directly, but also the when I am visiting the homepage (<code>http://lvh.me:3000/</code>). The sub-domain scope <code>launchpad</code> is shown to me and not the direct root I specified in my <code>routes.rb</code>.</p>
  
  <p>Now I am asking, how to solve the problem.</p>