Loading data from joined table

Hi,
The kind of relation you have within tables,

try
Rating.find(post.id)

regards
gaurav