Displaying 1 result from an estimated 1 matches for "6152815a".
Did you mean:
1152815
2006 Aug 16
5
Rails theory question, where to put a join query
The is something I wrestle with a bit when I construct joined queries..
Perhaps some experienced insight will straighten this out for me.
Say you have two tables with two models, ''authors'' and ''posts''.
an author has_many posts, a post has_one author.
You need methods to do the following queries:
find_author(postid)
find_posts(authorid)
And you are doing a