Permalink
Browse files

Copy edits 64148ab (previous commit). Please squash at will.

  • Loading branch information...
1 parent 64148ab commit 5b6a423d6bcbfd4142c47765794a4f93b8178562 @r00k r00k committed May 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_record_querying.textile
@@ -704,7 +704,7 @@ SELECT categories.* FROM categories
INNER JOIN posts ON posts.category_id = categories.id
</sql>
-Or, in English: "return a category object for all categories with posts". (You will see duplicate categories if more than one post has the same category. If you want unique posts, you can use Category.joins(:post).select("distinct(categories.id)).)
+Or, in English: "return a Category object for all categories with posts". Note that you will see duplicate categories if more than one post has the same category. If you want unique categories, you can use Category.joins(:post).select("distinct(categories.id)").
h5. Joining Multiple Associations

0 comments on commit 5b6a423

Please sign in to comment.