title: Unable to add comments to a post in meteorjs
body: <p>Somehow I am not able to add comments to a particular post.The comments are not getting inserted to the mongo database.</p>
  
  <pre><code>Comments = new Mongo.Collection('comments');
  Template.comments.helpers({
      'comment': function(){
          console.log(this._id);
          return Comments.find();
  
      }
  });
  Template.addComment.events({
          'click button':function(event){
              event.preventDefault();
              var madeBy = Meteor.user().username;
              var comment = document.getElementById('mycomment').value;
              var currentPost = this._id;
  
  
              Comments.insert({
                  comment:comment,
                  createdAt:new Date(),
  
                  madeBy:madeBy,
  
              });
              document.getElementById('mycomment').value='';
          }
      });
  </code></pre>
  
  <p>The HTML code for comment page is:</p>
  
  <pre><code>&lt;template name="comments"&gt;
      &lt;h2&gt;&lt;b&gt;{{name}}&lt;/b&gt;&lt;/h2&gt;
  
      {{&gt; addComment}}
      &lt;ul&gt;
          {{#each comment}}
              &lt;li&gt;{{comment}}&lt;/li&gt;
          {{/each}}
      &lt;/ul&gt;
  &lt;/template&gt;
  
  
  &lt;template name='addComment'&gt;
  &lt;input type='text' placeholder='Add comment here' name='comment' id ='mycomment'&gt;
  &lt;button class="btn btn" type="button" id='btn'&gt;Comment&lt;/button&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Here {{name}} refers to the name of post to which the comment has been made.
  Please help me out.Thankyou.</p>