aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_record_querying.textile
diff options
context:
space:
mode:
authorBen Orenstein <ben.orenstein@gmail.com>2011-05-26 22:22:10 -0400
committerBen Orenstein <ben.orenstein@gmail.com>2011-05-26 22:22:10 -0400
commit5b6a423d6bcbfd4142c47765794a4f93b8178562 (patch)
tree9dcca7432989a9ec466d2e78e962bfaf6a099c45 /railties/guides/source/active_record_querying.textile
parent64148ab96b47a9904fdd839bc69971b4e156bb04 (diff)
downloadrails-5b6a423d6bcbfd4142c47765794a4f93b8178562.tar.gz
rails-5b6a423d6bcbfd4142c47765794a4f93b8178562.tar.bz2
rails-5b6a423d6bcbfd4142c47765794a4f93b8178562.zip
Copy edits 64148ab96b47a9904fdd839bc69971b4e156bb04 (previous commit). Please squash at will.
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r--railties/guides/source/active_record_querying.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index 0690b5e169..d01e14fee7 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/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