diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-15 14:13:03 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-15 14:13:03 +0000 |
commit | 13cc934cc8510aef0aa3989c118996bc508a985f (patch) | |
tree | 49f46fcb23b3303cebf7ee779130dc527b381b37 | |
parent | b47b9289ebfc274625890bee5dd93330bb1e6f31 (diff) | |
download | rails-13cc934cc8510aef0aa3989c118996bc508a985f.tar.gz rails-13cc934cc8510aef0aa3989c118996bc508a985f.tar.bz2 rails-13cc934cc8510aef0aa3989c118996bc508a985f.zip |
Fix generated sql
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
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 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: <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 |