1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

clients.id

This commit is contained in:
Pratik Naik 2009-03-15 23:27:10 +00:00
parent 804a304065
commit 6c688d000f

View file

@ -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: You can just supply the raw SQL specifying the +JOIN+ clause to the +:joins+ option. For example:
<ruby> <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> </ruby>
This will result in the following SQL: This will result in the following SQL: