From 13cc934cc8510aef0aa3989c118996bc508a985f Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 15 Mar 2009 14:13:03 +0000 Subject: [PATCH] Fix generated sql --- railties/guides/source/active_record_querying.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index a8afb61bf5..b4a19b60cf 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/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: -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 h4. Using Array/Hash of Named Associations