title: Ruby on Rails routing to incorrect action
body: <p>I am very new to Ruby and I'm running into a few issues building my first solo project after following a tutorial here: <a href="http://guides.rubyonrails.org/getting_started.html" rel="nofollow">http://guides.rubyonrails.org/getting_started.html</a></p>
  
  <p>I am trying to create a link to my storevalue view on the welcome page like this:</p>
  
  <p>index.html.erb:</p>
  
  <pre><code>&lt;h1&gt;Welcome#index&lt;/h1&gt;
  &lt;%= link_to 'form page', controller: 'storevalue' %&gt;
  </code></pre>
  
  <p>that is throwing this error:</p>
  
  <pre><code>No route matches {:action=&gt;"index", :controller=&gt;"storevalue_path"}
  </code></pre>
  
  <p>Why is ruby trying the action index? Do I need to fix my routes.rb to reference storevalue/new which exists rather then storevalue/index (which is what it seems to be trying to reference)? If so, how do I do this, since I can't create two root in routes (according to another error message)</p>
  
  <p>routes.rb:</p>
  
  <pre><code>Rails.application.routes.draw do
  get 'welcome/index'
  root 'welcome#index'
  
  get 'storevalue/new'
  resource :storevalue
  end
  </code></pre>