I have four models: a, b, c, d
here is what i want to do:
a has_many b, :through => c a has_many d, :through => b
so that in the console now I can:
ab abfirst.d ad
the first two commands are currently working, but on the third I get an SQL error. he seems to be trying to go straight through b in order to get d and not lift the fact that a → b goes through c.
How to solve?
istan source share