title: Ruby Link to home#index _path
body: <p>I am new to ruby and I need help.</p>
  
  <p>on my "app\view\home\index" -> localhost
  I got </p>
  
  <pre><code>&lt;%= link_to "Blog", posts_path %&gt;
  </code></pre>
  
  <p>that leads me to -> localhost/posts</p>
  
  <p>so far so good.
  now here is where the problem stats.</p>
  
  <p>on my "app\view\posts\index" -> localhost/posts
  I got </p>
  
  <pre><code>&lt;%= link_to "Home" %&gt;
  </code></pre>
  
  <p>That links me to the same page "localhost/posts" but I want it to link to "localhost"</p>
  
  <p>I have tried almost anything but without success.</p>
  
  <p>my routes.rb:</p>
  
  <pre><code>BIO::Application.routes.draw do
  
  root :to =&gt; 'home#index'
  
  get "home/index"
  
  resources :posts do
  
  resources :comments end
  </code></pre>