Why I don't see {{name}} value on my page?

Hi,

I am totally new to a meteor, but I am not new to programming.

Today I started simple chatapp and I have a problem with printing name key from Messages db.

As you can see on screenshot message text is printed out but name not?

What am I missing here?

Screenshot: http://postimg.org/image/vg16sgthh/

Can you share your .js file so we can see the helpers?
EDIT: just saw it at the bottom. :wink:

Do you have the autopublish package on your project?

1 Like

Also, you should add the messages helper to your names template

1 Like

Thank you @lucatros very much, but somehow now it’s working, I just restarted my virtual machine and now I can see both columns name and message.

Thank you!

Glad to hear that! Check if it’s really necessary to have 1 template for the name and another one for the message. You are just placing the message below the name and both seems to be using the messages helper so you can just do something like this:

<template name="messages">
  {{#each message in messages}}
    <p>{{message.name}}</p>
    <p>{{message.message}}</p>
  {{/each}}
</template>

1 Like