diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 434b308170e6b8a51560050a75a5049467d16e8a..0019ac9297b94a65bcd7e4ff9c8391a6f19326ec 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1134,7 +1134,7 @@ This would generate a query which contains a `LEFT OUTER JOIN` whereas the If there was no `where` condition, this would generate the normal set of two queries. NOTE: Using `where` like this will only work when you pass it a Hash. For -SQL-fragments you need use `references` to force joined tables: +SQL-fragments you need to use `references` to force joined tables: ```ruby Article.includes(:comments).where("comments.visible = true").references(:comments)