{"action":"created","issue":{"url":"https://api.github.com/repos/mcknightg/flutterbum/issues/21","labels_url":"https://api.github.com/repos/mcknightg/flutterbum/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mcknightg/flutterbum/issues/21/comments","events_url":"https://api.github.com/repos/mcknightg/flutterbum/issues/21/events","html_url":"https://github.com/mcknightg/flutterbum/issues/21","id":60066320,"number":21,"title":" Cannot read property '_id' of undefined","user":{"login":"ThangDX","id":8459365,"avatar_url":"https://avatars.githubusercontent.com/u/8459365?v=3","gravatar_id":"","url":"https://api.github.com/users/ThangDX","html_url":"https://github.com/ThangDX","followers_url":"https://api.github.com/users/ThangDX/followers","following_url":"https://api.github.com/users/ThangDX/following{/other_user}","gists_url":"https://api.github.com/users/ThangDX/gists{/gist_id}","starred_url":"https://api.github.com/users/ThangDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThangDX/subscriptions","organizations_url":"https://api.github.com/users/ThangDX/orgs","repos_url":"https://api.github.com/users/ThangDX/repos","events_url":"https://api.github.com/users/ThangDX/events{/privacy}","received_events_url":"https://api.github.com/users/ThangDX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-06T06:49:27Z","updated_at":"2015-03-06T14:04:42Z","closed_at":"2015-03-06T12:51:07Z","body":"Hi George,\r\n\r\nI am at Video: Server Methods and got below error, can you please have look and help me how to fix it?\r\n\r\nThanks \r\n\r\n\r\n=> App running at: http://localhost:3000/\r\nI20150306-13:34:27.073(7)? Exception while invoking method 'saveProject' TypeError: Cannot read property '_id' of undefined\r\nI20150306-13:34:27.074(7)?     at [object Object].Meteor.methods.saveProject (app/server/email/config.js:29:54)\r\nI20150306-13:34:27.074(7)?     at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1599:1)\r\nI20150306-13:34:27.075(7)?     at packages/ddp/livedata_server.js:648:1\r\nI20150306-13:34:27.075(7)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\r\nI20150306-13:34:27.075(7)?     at packages/ddp/livedata_server.js:647:1\r\nI20150306-13:34:27.075(7)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\r\nI20150306-13:34:27.075(7)?     at [object Object]._.extend.protocol_handlers.method (packages/ddp/livedata_server.js:646:1)\r\nI20150306-13:34:27.075(7)?     at packages/ddp/livedata_server.js:546:1"},"comment":{"url":"https://api.github.com/repos/mcknightg/flutterbum/issues/comments/77562965","html_url":"https://github.com/mcknightg/flutterbum/issues/21#issuecomment-77562965","issue_url":"https://api.github.com/repos/mcknightg/flutterbum/issues/21","id":77562965,"user":{"login":"mcknightg","id":6768835,"avatar_url":"https://avatars.githubusercontent.com/u/6768835?v=3","gravatar_id":"","url":"https://api.github.com/users/mcknightg","html_url":"https://github.com/mcknightg","followers_url":"https://api.github.com/users/mcknightg/followers","following_url":"https://api.github.com/users/mcknightg/following{/other_user}","gists_url":"https://api.github.com/users/mcknightg/gists{/gist_id}","starred_url":"https://api.github.com/users/mcknightg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcknightg/subscriptions","organizations_url":"https://api.github.com/users/mcknightg/orgs","repos_url":"https://api.github.com/users/mcknightg/repos","events_url":"https://api.github.com/users/mcknightg/events{/privacy}","received_events_url":"https://api.github.com/users/mcknightg/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T14:04:42Z","updated_at":"2015-03-06T14:04:42Z","body":"Can you try changing the routes.js to \r\nRouter.map(function() {\r\nthis.route('home', {\r\n    path: '/',\r\n    layoutTemplate:'appLayout'\r\n  });\r\n\r\nthis.route('dashboard',{ \r\n        path: '/dashboard',\r\n        template: 'dashboard',\r\n      waitOn: function() {\r\n        return [Meteor.subscribe('projects')]\r\n      },\r\n      data: function() {\r\n        return {\r\n        projects : Projects.find()\r\n      }\r\n  }\r\n});\r\n\r\n\r\nthis.route('/customers');\r\nthis.route('/archives');\r\nthis.route('/roles');\r\n\r\n});\r\n"}}