@amexaCree wrote:
Hello all,
I’m stuck trying to implement this. I have a route that loads three models A, B and C. Here each model has an array of instances. Model B has a belongs-to relationship to one instance of model A while model C has a belongs-to relationship to one of model B. I am trying to make a component that has a property each for an instance of model A, B and C and C can be null because not all model B instances have a corresponding model C. So far I have been able to to use an each helper that runs through model A and within that helper another one that runs through model B and displays something only if model B matches with the current model A, however I’m stuck on how to do this with model C…
Any idea for a solution will be really appreciated, thanks!
Posts: 1
Participants: 1