title: Meteor Call Server Method in Client Got 404 Method Not Found Error
body: <p>I am new to meteor and running to an issue trying to call a server method on the client. </p>
  
  <pre><code>// Client code 
  Template.email.events({  
   'click #test-button' : function(e, t) {      
      Meteor.call('testMethod', function(err, response){
        if (err) {
          alert("error: "+ err)
        } else{
          alert("success")
        }
      });        
   }
  })
  
  // server code
  if (Meteor.isServer) {
  
    Meteor.methods({
      testMethod: function () {
         return "success";
      }
    });
  }
  </code></pre>
  
  <p>When I click on the button, I got a Error: Method Not Found 404. I tried to put the server method inside Meteor.startup and still gets the same error.What am I missing?</p>