On Dec 15, 9:24 am, Todd <[email protected]> wrote: > In rails, you need to use .count and not .size for this to work > because the first collection has already been loaded and therefore you > are asking for the length and not the count! The length == 0 and so > no records are returned.
I don't understand. Length, size, and count should all return the same value; the difference is in the SQL generated (or not generated). Why is the length 0? -- 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.

