Skip to content

Instantly share code, notes, and snippets.

@elie222
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elie222/160757fe9210ddf0c42f to your computer and use it in GitHub Desktop.
Save elie222/160757fe9210ddf0c42f to your computer and use it in GitHub Desktop.
<template name="createDiscussionForm">
{{> quickForm collection="Discussions" id="createDiscussionForm" type="insert"}}
</template>
Discussions = new Meteor.Collection("discussions", {
schema: new SimpleSchema({
title: {
type: String,
min: 1,
max: 25
}
})
});
// added afterwards to make this work
Discussions.allow({
insert: function (userId, doc) {
return true;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment