The image below illustrates how the ethanoic acid / ethanoate buffer works. As ethanoic acid is a weak acid it only partially dissociates, meaning there is a significant amount of this acid in the buffer. The salt, in this case sodium ethanoate fully disassociates so there is also a significant amount of the ethanoate ion present in the buffer.