Moja klasa model:Zagnieżdżony routingu w Ruby on Rails
class Category < ActiveRecord::Base
acts_as_nested_set
has_many :children, :foreign_key => "parent_id", :class_name => 'Category'
belongs_to :parent, :foreign_key => "parent_id", :class_name => 'Category'
def to_param
slug
end
end
Czy to możliwe, aby mieć taką rekurencyjną trasy tak: /root_category_slug/child_category_slug/child_of_a_child_category_slug
... i tak jeden
Dziękuję za wszelką pomoc:)
Świetne pytanie. –