javascript - Meteor Call returning 404 Method Not Found -


        meteor.call('create_question', title, content, function(error, result) {             console.log('create_question error ' + error);             console.log('create_question result ' + result);              if (error) {              } else {                 console.log('your question submitted');             }         }); 

this call meteor call on client.

and i've got in server.

meteor.methods({     create_question: function(question_title, question_content) { // stuff        },  }); 

but reason keep getting method not found. know what's wrong? i've got meteor.methods in server folder , call in client folder.

the method create_question should defined on both client , server.

you can use this.issimulation figure-out whether method being executed on server or client (as stub).


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -