title: Rails link to help
body: <p>Here is my routes:</p>
  
  <pre><code>match '/:kategoris/:id' =&gt; 'konkurrancers#show', :as =&gt; 'konkurrance'
  match '/:id' =&gt; 'kategoris#show'
  </code></pre>
  
  <p>I am using friendly url.</p>
  
  <p>My routes works perfectly. </p>
  
  <p>The problem is it dont know how I link to them:</p>
  
  <p>I have tried this in my root view:</p>
  
  <pre><code>&lt;% @konkurrencer.each do |vind| %&gt;
  &lt;li&gt;&lt;%= vind.name %&gt;&lt;/li&gt;
  &lt;li&gt;&lt;%= link to "vind.name", konkurrance_path(vind.cached_slug) %&gt;&lt;/li&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>No route matches {:controller=&gt;"konkurrancers", :action=&gt;"show", :kategoris=&gt;"horoskoptesten-hvad-siger-stjernerne-om-dig"
  
  horoskoptesten-hvad-siger-stjernerne-om-dig is a konkurrance
  </code></pre>
  
  <p>Instead I would like the link to be:
  {:controller=>"konkurrancers", :action=>"show", :kategoris => "vind-rejse" :id=>"horoskoptesten-hvad-siger-stjernerne-om-dig"></p>