Children objects don't use the same parent object?

@microsoft = Company.find(2)
@microsoft.name = “incredibly bad at anything computer related”
@les_concierge.company_branches.first.company.name
=> “Microsoft”

Why doesn’t the company branch use the new name I assigned to it? Why is
it still using Microsoft? How do I get it to use the new name?

Thanks for your help.

Ben J. wrote:

@microsoft = Company.find(2)
@microsoft.name = “incredibly bad at anything computer related”
@les_concierge.company_branches.first.company.name
=> “Microsoft”

Why doesn’t the company branch use the new name I assigned to it? Why is
it still using Microsoft? How do I get it to use the new name?

Thanks for your help.

Sorry, I meant to put:

@microsoft = Company.find(2)
@microsoft.name = “incredibly bad at anything computer related”
@microsoft.company_branches.first.company.name
=> “Microsoft”

Why doesn’t the company branch use the new name I assigned to it? Why is
it still using Microsoft? How do I get it to use the new name?

Thanks for your help.

Please disregard the first post.