[英]meteor-autoform examples all generate blank pages/no content
早上好,
我已經使用aldeed的簡單模式和collection2了,沒有問題。 我現在想要的是使用自動表單包( https://github.com/aldeed/meteor-autoform#a-basic-insert-form ),更具體地說是示例之一。
為了簡單起見,我仍在嘗試使第一個示例起作用:
autoform.html
<head>
<title>autoForm</title>
</head>
<body>
{{> insertBookForm}}
</body>
<template name="insertBookForm">
{{> quickForm collection="Books" id="insertBookForm" type="insert"}}
</template>
common.js
Books = new Mongo.Collection("books");
Books.attachSchema(new SimpleSchema({
title: {
type: String,
label: "Title",
max: 200
},
author: {
type: String,
label: "Author"
},
copies: {
type: Number,
label: "Number of copies",
min: 0
},
lastCheckedOut: {
type: Date,
label: "Last date this book was checked out",
optional: true
},
summary: {
type: String,
label: "Brief summary",
optional: true,
max: 1000
}
}));
問題是我總是得到空白頁。 流星應用程序終端中沒有顯示任何錯誤。
最好的祝福
我遇到了同樣的問題,請嘗試添加流星add ongoworks:security
這應該add ongoworks:security
您有所幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.