If i have a parent that has_many :children, and the child belongs_to
:parent. Then when I add a new child to the parent like so:
parent.children << Child.new, then shouldn’t the child also have a
reference to the parent? but it doesn’t-- child.parent is nil-- what’s
going on here? is this as it should be-- shouldn’t it have a reference
to the parent. am i missing some config somehwere?
thanks for the help!
(couldn’t figure it out from the rdocs or the source-- not quite at that