From: Hassan Schroeder Date: 2012-08-07T22:48:16+09:00 Subject: Re: Join with ActiveRecord using non-standard schema On Tue, Aug 7, 2012 at 2:31 AM, T- Di wrote: > @Hassan I thought I should use AgreementType in the has_one clause as > this is how I'm naming the class I'm refering to. I'm a bit lost now. Please read the Rails guide for ActiveRecord relationships,specifically the "has_one"/"belongs_to" examples. Look at which one of those is applied to the model that includes the foreign key. And of course look at the syntax of the entries. AR will handle your schema fine, if you set up your models properly. -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan