On Mar 10, 8:29 am, boblu <[email protected]> wrote:
> Apparently, my 'lexemes' table dose not have 'ref_id' and 'meta_id'
> field.
> And I'm using rails 2.2.2
>
> But when I change the 'conditions' field to conditions on lexemes
> table, everything goes fine.
> Lexeme.find(:all, :include=>:top_struct, :conditions=>'lexemes.id<10')
> Lexeme.find
> (:all, :include=>:all_structs, :conditions=>'lexemes.id<10')
>
> Can anyboby please explain to me why this is happening?
Seems like you had the same problem 5 months ago:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/5d54c2717944fe39/ebd8b583787ae63a?lnk=gst&q=include+column#ebd8b583787ae63a
- did you get to the bottom of that? the reason there's a difference
when you don't have a condition on the structures table is that in
that case AR does the include in a completely different way.
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---