How did you populate your tables?

I am sure it is an issue about LEFT JOIN, i.e: all records from left 
table will appear in the result even if they don't have matches on the 
right table.

As an order always has a user, :joins and :include return the same 
number of rows. Whereas, a user doesn't necessarily have an order, but 
he will still appear in the result with a left join.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to