diff options
author | Don Petersen <don@donpetersen.net> | 2012-04-16 16:22:40 -0700 |
---|---|---|
committer | Don Petersen <don@donpetersen.net> | 2012-04-16 16:22:40 -0700 |
commit | 256e317c390ef6f8ce9e033e2440a5665ef9d898 (patch) | |
tree | 06d1423e2b2a7f1e18ff50ba6227fa3144ccb42b /guides | |
parent | 749ced1767b3ba932de0163491fe34fe61008921 (diff) | |
download | rails-256e317c390ef6f8ce9e033e2440a5665ef9d898.tar.gz rails-256e317c390ef6f8ce9e033e2440a5665ef9d898.tar.bz2 rails-256e317c390ef6f8ce9e033e2440a5665ef9d898.zip |
Fix typo where a table name in a join was singular.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile index 06d0aa4f74..58eae2ee0f 100644 --- a/guides/source/active_record_querying.textile +++ b/guides/source/active_record_querying.textile @@ -834,7 +834,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". 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)"). +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(:posts).select("distinct(categories.id)"). h5. Joining Multiple Associations |