You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try and add the Posts collection as it is shown int he package example as follows:
@Schemas = {}
@Posts = new Meteor.Collection('posts');
Schemas.Posts = new SimpleSchema
title:
type: String
max: 60
content:
type: String
autoform:
rows: 5
createdAt:
type: Date
label: 'Date'
autoValue: ->
if this.isInsert
return new Date()
owner:
type: String
regEx: SimpleSchema.RegEx.Id
autoValue: ->
if this.isInsert
return Meteor.userId()
autoform:
options: ->
_.map Meteor.users.find().fetch(), (user)->
label: user.emails[0].address
value: user._id
Posts.attachSchema(Schemas.Posts)
I get back the following error: "Leading decorators must be attached to a class declaration"
What am I doing wrong here?
And is it possible to play around with the design the content of the /admin content? because I couldn't figure out how, I would appreciate it if someone could confirm it for me before I start using it :)
The text was updated successfully, but these errors were encountered:
When I try and add the Posts collection as it is shown int he package example as follows:
I get back the following error: "Leading decorators must be attached to a class declaration"
What am I doing wrong here?
And is it possible to play around with the design the content of the
/admin
content? because I couldn't figure out how, I would appreciate it if someone could confirm it for me before I start using it :)The text was updated successfully, but these errors were encountered: