title: "Finding" the "parent" object in a nested resource relationship?
body: <p>Say that I have two resources, Project and Task. A Project can have many Tasks; A Task belongs to one Project. Also say that I have Task nested under Project in routes.rb:</p>
  
  <pre><code>map.resources :projects do |project|
    project.resources :tasks
  end
  </code></pre>
  
  <p>Can one programmatically discover this relationship? Basically, I need to dynamically load an arbitrary object, then figure out if it has a "parent", and then load that parent.</p>
  
  <p>Any ideas?</p>