has_one :through doesn't work in Rails 2.2.2

I simply copied the code in that link, and in the associated table there were only needed fields to establish the relations.

Regards, 林中鹏