我無法使應用程序在Meteor上工作。 quickform沒有鏈接我的收藏。模板助手中的流星quickForm異常:錯誤:食譜不在窗口範圍內
「例外模板幫手:錯誤:食譜不在窗口範圍」
任何人都可以幫忙嗎?
這裏是我的quickform代碼
<template name="NewRecipe">
\t <div class="new-recipe-container">
\t \t {{> quickForm collection="Recipes" id="insertRecipeForm" type="insert" class="new-recipe-form" }}
\t \t
\t </div>
</template>
,這裏是我的收藏模式
Recipes = new Mongo.Collection('recipes');
RecipeSchema = new SimpleSchema({
\t name: {
\t \t type: String,
\t \t label:"Name"
\t },
\t desc: {
\t \t type: String,
\t \t label:"Description"
\t },
\t author: {
\t \t type: String,
\t \t label:"Author",
\t \t autoValue: function() {
\t \t \t return this.userId
\t \t }
\t },
\t createdAt: {
\t \t type: Date,
\t \t label:"Created At",
\t \t autoValue: function() {
\t \t \t return new Date()
\t \t }
\t }
});
Recipes.attachSchema(RecipeSchema);
{{> quickForm collection = Recipes id =「insertRecipeForm」type =「insert」class =「new-recipe-form」}}帶有集合的模式名稱 – channasmcs