Questions tagged [awesome-nested-set]

17 questions
0
votes
1 answer

Conversation view for mailbox using awesome_nested_set

I'm using awesome_nested_set for building mail conversations. I have two mailboxes (Inbox and Sent) and now I want to build a proper conversation view. The main goal is select roots that have any descendants in target mailbox and root's last leaf…
0
votes
0 answers

AwesomeNestedSet and sortable tree

In default AwesomeNestedSet gem is sorting by :lft attribute. Suppose I have a class: class Category < ActiveRecord::Base acts_as_nested_set attr_accessible :name, :position, :parent_id, :lft, :rgt end How can I create a sortable (by :position…
Alexander Shlenchack
  • 3,779
  • 6
  • 32
  • 46
1
2