I have a database layout, where one of the fields is reference to another row in the same table. create table rdf_classes ( id int not null auto_increment, name varchar(100) not null, ... parent_id int not null, primary key (id) ); So what do I need to add to ''RdfClass'' that ''instance.parent'' will return the appropriate RdfClass instance? Or is there an entirely different way of achieving that? Thanks, -max
On Tuesday 12 July 2005 00:40, Maximilian Ott wrote:> Or is there an entirely different way of achieving that?Look in the docs for acts_as_tree Michael -- Michael Schuerig The Fifth Rider of the Apocalypse mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org is a programmer. http://www.schuerig.de/michael/