Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clients.id

  • Loading branch information...
commit 6c688d000f7dc8a4e65d6730c7c425839d2583b4 1 parent 804a304
@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
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.