Well, I know how to handle associations from one model (call it ModelA) through the second one (ModelB) to the third one (ModelC). But what if the third one(ModelC) is associated to the fith one(ModelE) trough the 4th (ModelD).
#ModelA
has_many :model_bs
has_many :model_cs, :trough => :model_bs
#ModelC
has_many :model_ds
has_many :model_es, :trough => model_ds
The question is: how can I get the collection of ModelE records, associated with the specific ModelA record trough that chain?