title: routes.rb file not routing as expected
body: <p>I have a system of nested categories, which are dealt with in the routes.rb file as following:</p>
  
  <pre><code>path = "/categories/:id"
  10.times do |i|
      path &lt;&lt; "/:id#{i}"
      match path =&gt; "categories#show", :via =&gt; [:get]
  end
  </code></pre>
  
  <p>This all works very well. </p>
  
  <p>The problem is that I have a couple of cases where I don't want to use my generic categories#show page. For example for one category I want to fire to a completely different controller entirely. </p>
  
  <p>I thought I could do something like this:</p>
  
  <pre><code>  # Override certain category page
    match "categories/MyCategory" =&gt; "othercontroller#specialcase"
  
  
    path = "/categories/:id"
    10.times do |i|
      path &lt;&lt; "/:id#{i}"
      match path =&gt; "categories#show", :via =&gt; [:get]
    end
  </code></pre>
  
  <p>I thought that by doing this any request for exactly "www.myurl.com/categories/MyCategory would instead be passed to <code>othercontroller</code> instead of <code>categories</code>. This doesn't seem to be the case though. </p>
  
  <p>Can anybody explain why? I thought priority was based on file order.</p>