Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix generated sql

  • Loading branch information...
commit 13cc934cc8510aef0aa3989c118996bc508a985f 1 parent b47b928
@lifo lifo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/active_record_querying.textile
View
2  railties/guides/source/active_record_querying.textile
@@ -645,7 +645,7 @@ Client.all(:joins => 'LEFT OUTER JOIN addresses ON addresses.client_id = client.
This will result in the following SQL:
<sql>
-SELECT clients.* FROM clients INNER JOIN addresses ON addresses.client_id = clients.id
+SELECT clients.* FROM clients LEFT OUTER JOIN addresses ON addresses.client_id = clients.id
</sql>
h4. Using Array/Hash of Named Associations
Please sign in to comment.
Something went wrong with that request. Please try again.