Had the same very strange bug too On Tue, Mar 8, 2011 at 6:56 AM, CuriousNewbie <[email protected]> wrote: > Hello, I'm using the Awesome Nested Set plugin: > https://github.com/collectiveidea/awesome_nested_set > > And in my model I do the following: > acts_as_nested_set > after_save :ensure_max_nestedset_level > private > def ensure_max_nestedset_level > if self.level > 2 > self.move_to_child_of(parent.parent) > end > end > I do this to keep the levels from getting to deep. Any idea why I'm getting > this "Impossible move, target node cannot be inside moved tree." error? > What's strange is it happens on production but I can't replicate it on Dev. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

