The ability to do home.owner
is a natural outcome of what you've described, just as is owner.homes
. This is all covered in http://guides.rubyonrails.org/association_basics.html
If you can do home.owner_id
, but not home.owner
, that means that your database is set up properly, but you're missing the belongs_to :owner
call in your Home
model.