I know this question has been asked before, but gmane is down:
How do I access the object that is defined by a 'belongs_to' relationship?
:Book belongs_to :author
:Author has_one :book
The foreign id of the Author is present in the book table.
For a certain instance of a book, I want to access the authors name -
couldn't I use book.author.name?
I get a nil object when I try this.