title: Rails routing/polymorphism issue - how to model the following
body: <p>I have an app where a 'user' belong to a 'client' or a 'vendor' (and client and vendor has_many users). In the admin namespace, I want to administer these users - so an admin would choose a client or a vendor, then nav to that client's or vendor's users. My question is, short of making the user model polymorphic, how could I model/route this?</p>
  
  <p>Here is what I have in terms of routing:</p>
  
  <pre>
  map.namespace :admin do |admin|
    admin.resources :clients
    admin.resources :vendors
  end
  </pre>
  
  <p>I know I could do something like:</p>
  
  <pre>
  map.namespace :admin do |admin|
    admin.resources :clients do |client|
      client.resources :users
    end
    admin.resources :vendors do |vendor|
      vendor.resources :users
    end
  end
  </pre>
  
  <p>But the above would definitely need me to treat the User as polymorphic.</p>
  
  <p>I'm just wondering what you would recommend or what my options are.</p>
  
  <p>Thanks.</p>