I have setup a model relationship and all is working well when I use code similar to:
@parent.child.each do |item|
item.name
end
But how would I call just a specific child given there id
eg.
Child ID is 14
Would like a call like:
@parent.child[childid].name #>>>>>> CHILD'S NAME