Displaying 1 result from an estimated 1 matches for "section_to_look_for".
2006 Feb 27
1
How to build a recursive parenting structure?
...s foreign key (parent_id) references sections(id),
constraint fk_sections foreign key (section_id) references sections(id)
);
Because I can''t have two section_id fields. So how can I let rails know
that it should look for parent_id when I do something like:
@section.sections.include?(@section_to_look_for)?
--
Posted via http://www.ruby-forum.com/.