Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormsalhab
    • CommentTimeMar 4th 2008
     

    Hi ;

    How can I implement self join in Ak?

    assume I have the class "Comment" and each Comment has many sub-comment :-)

    Thanks alot thanks kaste

    • CommentAuthorKaste
    • CommentTimeMar 4th 2008 edited
     

    generally you have to build the self-join with the same statements as any other association/table-relation. so to speak: a comment has_many subcomments.

    But most likely you can build the child/parent-relationship you're describing with the acts_as_tree behaviour.

Add your comments
    Username Password
  • Format comments as