2009-12-21 135 views

回答

2

我最終只設置在嵌套模式的默認範圍的排序順序:

default_scope :order => 'name' 
5

設置一個默認的排序爲聯想,例如:

has_many :children, :order => "name"