title: How do I create an ActiveRecord relationship to an ActiveResource object?
body: <p>Let's say I'm writing a Library application for a publishing company who already has a People application.</p>
  
  <p>So in my Library application I have</p>
  
  <pre><code>class Person &lt; ActiveResource::Base
    self.site = "http://api.people.mypublisher.com/"
  end
  </code></pre>
  
  <p>and now I want to store <code>Article</code>s for each <code>Person</code>: </p>
  
  <pre><code>class Article &lt; ActiveRecord::Base
    belongs_to :person, :as =&gt; :author
  end
  </code></pre>
  
  <p>I imagine I'd have the following table in my database:</p>
  
  <pre><code>Articles
  id (PK) | title (string) | body (text) | author_id (integer)
  </code></pre>
  
  <p><code>author_id</code> isn't exactly a Foreign-Key, since I don't have a People table.  That leaves several questions:</p>
  
  <ol>
  <li><p>how do I tell my <code>Person</code> <code>ActiveResource</code> object that it <code>has_many</code> <code>Articles</code>?</p></li>
  <li><p>Will <code>Articles.find(:first).author</code> work?  Will <code>belongs_to</code> even work given that there's no <code>ActiveRecord</code> and no backing table?</p></li>
  </ol>