You should not do this. (@posts.load)
You should edit the post data itself.
Like this:

    @posts.data[id].msg = posts.msg

Also you should use another name for "posts" here. Like "value", or something like that.