> class Song
> belongs_to :rating
> end
>
> assert Song.find(1).rating.is_a?(Rating)
>
> This sort of thing ought to work, so I don''t quite understand your
> problem. If this doesn''t work, either you''re setting it
up incorrectly
> somehow, or you''ve found some erroneous behaviour in AR. Can you
please
> expand upon why you think you get ''no "natural"
song.rating field''?
First, I did not get the same behavior when I came back to the problem
as I did when I left it. It stated that there was a "missing method,"
but it must have been simple user error.
It worked like a charm once I realized that the rating needed to be
saved first, then associated with the song, then the song needed to be
saved.
Bad noob, no donut.
Cheers,
Jim