0
我有這個Rails的模型:(爲清楚起見移除參數)我該如何處理類似文件夾的模型結構?
class Folder < ActiveRecord::Base
belongs_to :parent, :class_name => :folder
has_many :children, :class_name => :folder
end
我要像使用文件系統文件夾這種模式。我該如何配置路線和控制器才能實現這一點?