I’m having great fun developing with Rails but I’ve come to a problem
that I can’t quite figure out.
I have an Order object that “has_many” order_lines. This works perfectly
and I can see all the lines.
The OrderLine object has an order_id field as well as product_id and
Now ideally I would want to do :
for example to pull back the name of the product it’s linking to - but
no matter what I try, I cannot get that to work.
Can anyone tell what I’m doing wrong? I imagine it’s pretty obvious…
Thanks in advance!