title: How to add a custom RESTful route to a Rails app?
body: <p>I'm reading these two pages</p>
  
  <ol>
  <li><a href="http://api.rubyonrails.org/classes/ActionController/Resources.html#M000522" rel="noreferrer"><code>resources</code></a></li>
  <li><a href="http://guides.rubyonrails.org/routing.html#adding-more-restful-actions" rel="noreferrer"><code>Adding more RESTful actions</code></a></li>
  </ol>
  
  <p>The Rails Guides page shows</p>
  
  <pre><code>map.resources :photos, :new =&gt; { :upload =&gt; :post }
  </code></pre>
  
  <p>And its corresponding URL</p>
  
  <pre><code>/photos/upload
  </code></pre>
  
  <p>This looks wonderful.</p>
  
  <hr>
  
  <p>My <code>routes.rb</code> shows this</p>
  
  <pre><code>map.resources :users, :new =&gt; { :signup =&gt; :get, :register =&gt; :post }
  </code></pre>
  
  <p>When I do: <code>[~/my_app]$ rake routes</code></p>
  
  <p>I see the two new routes added</p>
  
  <pre><code>  signup_new_user GET    /users/new/signup(.:format)
  register_new_user POST   /users/new/register(.:format)
  </code></pre>
  
  <p><strong>Note</strong> the inclusion of <code>/new</code>! I <strong>don't</strong> want that. I just want <code>/users/signup</code> and <code>/users/register</code> (as described in the Rails Routing Guide).</p>
  
  <p>Any help?</p>