title: How do I point to the admin artist link correctly?
body: <p>I want my artist links to look like this:</p>
  
  <pre><code>http://admin.foobar.com/artists/123
  http://www.foobar.com/123
  </code></pre>
  
  <p>My <code>Routes</code> setup looks like this:</p>
  
  <pre><code>class AdminSubDomain
    def matches?(request)
      whitelists = IpPermission.whitelists
  
      if whitelists.map { |whitelist| whitelist.ip }.include? request.remote_ip
        request.subdomain == 'admin'
      else
        raise ActionController::RoutingError.new('Not Found')
      end
    end
  end
  
  Foobar::Application.routes.draw do
    constraints AdminSubDomain.new do
      ..
      resources :artists, :only =&gt; [:index, :show], :controller =&gt; 'admin/artists'
    end
  
    get ':id' =&gt; 'artists#show', :as =&gt; 'artist' do
      ..
    end
  end
  </code></pre>
  
  <p><code>Rake routes</code> returns:</p>
  
  <pre><code>artist GET    /artists/:id(.:format)        admin/artists#show
  artist GET    /:id(.:format)                artists#show
  </code></pre>
  
  <p>At the moment, <code>&lt;%= link_to 'Show', artist_path(artist, :subdomain =&gt; :admin) %&gt;</code> points to: <code>http://admin.foobar.dev:3000/123</code>.</p>
  
  <p>It should look like: <code>http://admin.foobar.dev:3000/artists/123</code></p>
  
  <p>What am I doing wrong?</p>