{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1449","repository_url":"https://api.github.com/repos/aldeed/meteor-autoform","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1449/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1449/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1449","id":150010094,"number":1449,"title":"Meteor 1.3 collection is not in the window scope","user":{"login":"yasaricli","id":1306620,"avatar_url":"https://avatars.githubusercontent.com/u/1306620?v=3","gravatar_id":"","url":"https://api.github.com/users/yasaricli","html_url":"https://github.com/yasaricli","followers_url":"https://api.github.com/users/yasaricli/followers","following_url":"https://api.github.com/users/yasaricli/following{/other_user}","gists_url":"https://api.github.com/users/yasaricli/gists{/gist_id}","starred_url":"https://api.github.com/users/yasaricli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasaricli/subscriptions","organizations_url":"https://api.github.com/users/yasaricli/orgs","repos_url":"https://api.github.com/users/yasaricli/repos","events_url":"https://api.github.com/users/yasaricli/events{/privacy}","received_events_url":"https://api.github.com/users/yasaricli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-04-21T08:51:06Z","updated_at":"2017-02-24T18:48:47Z","closed_at":"2017-02-23T01:10:06Z","body":"Hi;\n\nI updated application **Meteor.1.3** and template error because it is not imported  \n\n**> quickForm collection=\"Books\"**\n\n```\nimport { Mongo } from 'meteor/mongo';\nimport { SimpleSchema } from 'meteor/aldeed:simple-schema';\n\nimport const Books = new Mongo.Collection(\"books\");\nBooks.attachSchema(new SimpleSchema({\n  title: {\n    type: String,\n    label: \"Title\",\n    max: 200\n  },\n  author: {\n    type: String,\n    label: \"Author\"\n  },\n  copies: {\n    type: Number,\n    label: \"Number of copies\",\n    min: 0\n  },\n  lastCheckedOut: {\n    type: Date,\n    label: \"Last date this book was checked out\",\n    optional: true\n  },\n  summary: {\n    type: String,\n    label: \"Brief summary\",\n    optional: true,\n    max: 1000\n  }\n}));\n```\n## Template\n\n```\n<template name=\"insertBookForm\">\n  {{> quickForm collection=\"Books\" id=\"insertBookForm\" type=\"insert\"}}\n</template>\n```\n\n**> Exception in template helper: Error: Books is not in the window scope**\n\nbut so that the solution:\n\n```\nimport { Template } from 'meteor/templating';\nimport { Books } from '/imports/books.js';\n\n\nTemplate.insertBookForm.helpers({\n  books() {\n    return Books;\n  }\n});\n```\n## Template\n\n```\n<template name=\"insertBookForm\">\n  {{> quickForm collection=books id=\"insertBookForm\" type=\"insert\"}}\n</template>\n```\n\nAny ideas?  or another solution?\n\nthanks.\n"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/comments/282371779","html_url":"https://github.com/aldeed/meteor-autoform/issues/1449#issuecomment-282371779","issue_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1449","id":282371779,"user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"created_at":"2017-02-24T18:48:47Z","updated_at":"2017-02-24T18:48:47Z","body":"@nosizejosh \r\n\r\nWith quotes, `collection=\"Books\"`, means \"look for `window.Books`\"\r\n\r\nWithout quotes, `collection=Books`, means \"look for a helper or property or variable in current scope with the name `Books`\"\r\n\r\nSo it sounds like you are just using quotes when you don't mean to."}}
{"actor":{"display_login":"aldeed"}}