diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-15 23:27:10 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-15 23:27:31 +0000 |
commit | 6c688d000f7dc8a4e65d6730c7c425839d2583b4 (patch) | |
tree | 071c6ecda2a25ab3470775ff116b2e945f76e64f /railties/guides/source/active_record_querying.textile | |
parent | 804a304065d04265957458bf27810bb7fb4e99e8 (diff) | |
download | rails-6c688d000f7dc8a4e65d6730c7c425839d2583b4.tar.gz rails-6c688d000f7dc8a4e65d6730c7c425839d2583b4.tar.bz2 rails-6c688d000f7dc8a4e65d6730c7c425839d2583b4.zip |
clients.id
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-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 071e1fe48f..442521cbf4 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -639,7 +639,7 @@ h4. Using a String SQL Fragment You can just supply the raw SQL specifying the +JOIN+ clause to the +:joins+ option. For example: <ruby> -Client.all(:joins => 'LEFT OUTER JOIN addresses ON addresses.client_id = client.id') +Client.all(:joins => 'LEFT OUTER JOIN addresses ON addresses.client_id = clients.id') </ruby> This will result in the following SQL: |