title: Restricting a Rails 2.3 Named Route to POST/GET
body: <p>This is hopefully very easy to do, but I can't find any doco on it anywhere (probably because I am lacking the proper search terms). Anyway...</p>
  
  <p>I want to have two named routes sharing the same path. The distinguishing feature between the two will be that one will accept GETs and the other will accept POSTs.</p>
  
  <p>Below is what I have so far. I have tried to use a :method arg and a :via param, but neither do the trick. I have also tried ":requirements => {:method => :get}".</p>
  
  <pre><code>map.show_current '/rounds/', :controller =&gt; :rounds, :action =&gt; :show, :method =&gt; :get
  map.create '/rounds/', :controller =&gt; :rounds, :action =&gt; :create, :via =&gt; [:post, :put]
  </code></pre>
  
  <p>Any suggestions would be appreciated, even just an appropriate search term.</p>
  
  <p>Cheers.</p>