title: rails 3 named routes
body: <p>I am upgrading my application to rails 3.  My old route was </p>
  
  <pre><code>map.profile 'profile/:login', :controller =&gt; 'profile', :action =&gt; 'show'
  </code></pre>
  
  <p>I changed this to:</p>
  
  <pre><code> match 'profile/:login', :to =&gt; 'profile#show'
  </code></pre>
  
  <p>This works when I enter in the route say /profile/red99</p>
  
  <p>But when I use a generic link like:</p>
  
  <pre><code> &lt;%= link_to image.user.login, :controller =&gt; "profile", :action =&gt; image.user.login %&gt;  
  </code></pre>
  
  <p>or</p>
  
  <pre><code> &lt;%= link_to "public profile", :controller =&gt; "profile", :action =&gt; current_user.login %&gt;
  </code></pre>
  
  <p>I gives me the error No route matches {:controller=>"profile", :action=>"red99"}</p>