我安装了祖先宝石&创建位置结构。
我的职位和位置模型
class Location < ActiveRecord::Base
include Tree
has_many :posts
end
class Post < ActiveRecord::Base
belongs_to :location
end当我添加新的帖子,如何只显示深度4级(梅尔文1,梅尔文2,梅尔文3)作为下降。
https://stackoverflow.com/questions/24787750
复制相似问题