0
我有这个Rails的模型:(为清楚起见移除参数)我该如何处理类似文件夹的模型结构?
class Folder < ActiveRecord::Base
belongs_to :parent, :class_name => :folder
has_many :children, :class_name => :folder
end
我要像使用文件系统文件夹这种模式。我该如何配置路线和控制器才能实现这一点?