Hãy thử điều này:
default_scope { order('collections.id ASC') } //collection.rb
default_scope { order('components.id ASC') } //component.rb
Khi bạn thực hiện một join tăng dần trên id trở nên ambiguous vì cả hai thành phần components và collections có id cột. Nó sẽ không biết sử dụng cái nào.