title: how do I link pages on rails?
body: <p>I have three resources for my demo_app that I made. I made a home page but I wanted to put links of my home page to link to my three resources. I put out the code </p>
  
  <pre><code>&lt;%= link_to 'users', @user %&gt; | 
  &lt;%= link_to 'microposts', @micropost %&gt; |
  &lt;%= link_to 'task', @task %&gt; |
  </code></pre>
  
  <p>on my home page and the links show up on the page but they don't work</p>
  
  <p>routes.rb file</p>
  
  <pre><code>DemoApp::Application.routes.draw do
        get "static_pages/home"
  
        resources :tasks
  
        resources :microposts
  
        resources :users
  
        root :to =&gt; 'static_pages#home'
      end
  </code></pre>
  
  <p>what I want to do is link to the index page of each of these like the one here</p>
  
  <pre><code>&lt;h1&gt;Listing tasks&lt;/h1&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Status&lt;/th&gt;
        &lt;th&gt;&lt;/th&gt;
        &lt;th&gt;&lt;/th&gt;
        &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
      &lt;% @tasks.each do |task| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= task.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= task.status %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', task %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_task_path(task) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', task, method: :delete, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;br&gt;
  
  &lt;%= link_to 'New Task', new_task_path %&gt;
  </code></pre>
  
  <p>and also have a link back to the home page. sorry is this a funky question? </p>