title: rails find by path
body: <p>Maybe I'm not searching on the right keywords but: Is it possible to search given an object path?</p>
  
  <p>I have '/businesses/2' and I'd simply like to do something like @object = Business.find('/businesses/2') to fetch that object</p>
  
  <p>One way is to:</p>
  
  <pre><code>ids = params[:who_id].split('/')
  @object = ids[1].singularize.constantize.find(ids[2])
  </code></pre>
  
  <p>But I'm wondering if there is a built in way since this seemed to me as something quite normal to do.</p>