title: Ruby on Rails : add a new route
body: <p>I'm new with RoR so this is a newbie question:<br>
  if I have a controller <code>users_controller.rb</code> and I add a method <code>foo</code>, shouldn't it create this route?  </p>
  
  <blockquote>
    <p><a href="http://www.localhost:3000/users/foo" rel="noreferrer">http://www.localhost:3000/users/foo</a></p>
  </blockquote>
  
  <p>because when I did that, I got this error:  </p>
  
  <blockquote>
    <p>Couldn't find User with id=foo</p>
  </blockquote>
  
  <p>I of course added a view <code>foo.html.erb</code></p>
  
  <p><strong>EDIT:</strong><br>
  I added to <code>routes.rb</code> this code but I get the same error:</p>
  
  <pre><code>resources :users do
      get "signup"
    end
  </code></pre>