title: Different routes but using the same controller for model subclasses in Rails
body: <p>I have a Model Property which has subclasses using STI, </p>
  
  <p>and which I would like all to use the same controller with only different view partials depending on the subclass.</p>
  
  <pre><code>Property
  Restaurant &lt; Property
  Landmark &lt; Property
  </code></pre>
  
  <p>It works find except I'm not sure how to discern the subclass inside the controller to render the correct view.  Ie. /restaurants works and goes to the properties controller but I can't tell that they want the Restaurant subclass?</p>
  
  <pre><code>map.resources :restaurant, :controller =&gt; :properties
  map.resources :properties
  </code></pre>