很莫名,为什么acts_as_tree不提供:include接口,没有include,很容易造成n+1问题。 没办法,只好在acts_as_tree声明,后面再加上一个has_many声明,把include加上。