Hi, I used :scope => :root option, and realized that new root items were given [1,2] as boundaries : I might have error in my code.
However, I had a look at the before_create method and I think condition are unnecesary : as the comment says, we just want to put it to the end of the tree.
Anyway, it's move_to later.
Thus, I just remove condition : :conditions => acts_as_nested_set_options[:scope]
(r.9 l.139)
# on creation, set automatically lft and rgt to the end of the tree
def before_create
maxright = self.class.maximum(acts_as_nested_set_options[:right_column]) || 0
# adds the new node to the right of all existing nodes
self[acts_as_nested_set_options[:left_column]] = maxright+1
self[acts_as_nested_set_options[:right_column]] = maxright+2
end
Wish it helps,
Regards,