title: Default namespace for polymorphic url_for
body: <p>In my application I have a namespaced admin section.  Here's a snippet from my routes.rb:</p>
  
  <pre><code>map.namespace :admin do |admin|
    admin.resources :contents
  end
  
  map.resources :contents
  </code></pre>
  
  <p>Within my admin namespace, right now I am using the following:</p>
  
  <pre><code>link_to content, admin_content_path(content)
  </code></pre>
  
  <p>But I want to do:</p>
  
  <pre><code>link_to content, content
  </code></pre>
  
  <p>Which is currently equivalent to:</p>
  
  <pre><code>link_to content, content_path(content)
  </code></pre>
  
  <p>Is there a way to have all links within views belonging to a controller be prefixed with a namespace?</p>