<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt; You&amp;#8217;ve setup the association between Story and StoryLine::Version, not StoryLine.  Move the association outside of the version_fu block.&lt;/p&gt;
&lt;p&gt;Update to below:&lt;/p&gt;
&lt;p&gt;When I add :table_name, like so, all my associations to StoryLine work, but I now every time I look up a row in StoryLine and try to change its attributes, I write two records to the DB instead of one:&lt;/p&gt;
&lt;p&gt;class Story &amp;lt; ActiveRecord&lt;/p&gt;
&lt;p&gt;version fu :table_name =&amp;gt; &amp;#8220;story_lines&amp;#8221; do&lt;/p&gt;
&lt;p&gt;belongs_to :story, :class_name =&amp;gt; &amp;#8216;::Story&amp;#8217;&lt;/p&gt;
&lt;p&gt;end&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a model StoryLine, which belongs_to :story.&lt;/p&gt;
&lt;p&gt;Story has_many :story_lines&lt;/p&gt;
&lt;p&gt;When version_fu was not in my model, I could fire up the console and do this:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; story_line = story_line.find(:first)&lt;br /&gt;
&amp;gt;&amp;gt; p story_line.story.inspect&lt;/p&gt;
&lt;p&gt;&amp;#8230;.&lt;/p&gt;
&lt;p&gt;And I&amp;#8217;d see the story method show up. Then I put version_fu in, as suggested:&lt;/p&gt;
&lt;p&gt;version_fu do&lt;/p&gt;
belongs_to :story, :class_name =&amp;gt; &amp;#8216;::Story&amp;#8217;
&lt;p&gt;end&lt;/p&gt;
&lt;p&gt;Now when i do this in the console (yes, restarted and reloaded), the &amp;#8220;story&amp;#8221; method cannot be found. Any ideas?&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; story_line = story_line.find(:first)&lt;br /&gt;
&amp;gt;&amp;gt; p story_line.story.inspect&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-26T14:35:22-08:00</created-at>
  <id type="integer">157712</id>
  <permalink>trouble-with-associations</permalink>
  <repository-id type="integer">12955</repository-id>
  <title>trouble with associations</title>
  <updated-at type="datetime">2009-03-12T11:36:11-07:00</updated-at>
  <user-id type="integer">3744</user-id>
</wiki>
