title: Rails 3 Routes: Named routes. "No route matches"
body: <p>So I'm getting a 'No route matches' error, and being new to Rails 3 (and Rails in general), I really don't know what the problem is.  Here are the pertinent routes:</p>
  
  <pre><code>resources :users
  #...
  match 'reset_password(/:reset_password_code)' =&gt; 'users#reset_password', :as =&gt; :reset_password, :via =&gt; :get
  match 'reset_password' =&gt; 'users#reset_password_submit', :as =&gt; :reset_password, :via =&gt; :post
  </code></pre>
  
  <p>The GET method works fine.  I get a routing error when the form POSTs that's generated on the get page, which starts like this.</p>
  
  <pre><code>&lt;%= form_for @user, :url =&gt; reset_password_url do |f| %&gt;
  </code></pre>
  
  <p>It <em>looks</em> like it's posting to the right spot, as the url is generated using 'reset_password_url', it's posting to it, and the url looks as it should... anyone have any ideas?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <ul>
  <li>I'm using Rails 3.0.4</li>
  <li>I've tried taking out every other route except for the ones that I've mentioned here, and I still can't figure out why it's not working.</li>
  </ul>