Last active
August 29, 2015 14:04
-
-
Save elie222/160757fe9210ddf0c42f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="createDiscussionForm"> | |
{{> quickForm collection="Discussions" id="createDiscussionForm" type="insert"}} | |
</template> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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