search for: top_struct

Displaying 1 result from an estimated 1 matches for "top_struct".

Did you mean: map_struct
2009 Mar 10
5
'unknow column error' when using include and associated table condition in find
...Structure id:int ref_id:string meta_id:int Lexeme can have many structure records through foreign key ''ref_id'' in the structures table. And these structure records belonging to one lexeme differs between each other using meta_id. And if Lexeme has structures, then there must be a top_struct whose structure.id is 0. This is the association I specified. class Lexeme has_one :top_struct, :class=>''Structure'', :foreign_key=>''ref_id'', :conditions=>''structures.meta_id=0'' has_many: all_structs, :class=>''Structure&...