Hello,
When I do
order = Order.find :first
line_item = order.line_items.new
line_item.save
the LineItem object is saved with order_id = nil.
However, if I just do order.line_item.create, order_id is filled out
correctly and it saves the association.
Why doesn’t it work with .new?
Thanks,
Andrew