Permalink
Browse files

clients.id

  • Loading branch information...
1 parent 804a304 commit 6c688d000f7dc8a4e65d6730c7c425839d2583b4 @lifo lifo committed Mar 15, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 6c688d0

Please sign in to comment.