{"action":"created","issue":{"url":"https://api.github.com/repos/Webura/mongooseadmin/issues/1","labels_url":"https://api.github.com/repos/Webura/mongooseadmin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Webura/mongooseadmin/issues/1/comments","events_url":"https://api.github.com/repos/Webura/mongooseadmin/issues/1/events","html_url":"https://github.com/Webura/mongooseadmin/issues/1","id":74633913,"number":1,"title":"Models not loading","user":{"login":"BradleyWiebe","id":2049441,"avatar_url":"https://avatars.githubusercontent.com/u/2049441?v=3","gravatar_id":"","url":"https://api.github.com/users/BradleyWiebe","html_url":"https://github.com/BradleyWiebe","followers_url":"https://api.github.com/users/BradleyWiebe/followers","following_url":"https://api.github.com/users/BradleyWiebe/following{/other_user}","gists_url":"https://api.github.com/users/BradleyWiebe/gists{/gist_id}","starred_url":"https://api.github.com/users/BradleyWiebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BradleyWiebe/subscriptions","organizations_url":"https://api.github.com/users/BradleyWiebe/orgs","repos_url":"https://api.github.com/users/BradleyWiebe/repos","events_url":"https://api.github.com/users/BradleyWiebe/events{/privacy}","received_events_url":"https://api.github.com/users/BradleyWiebe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-09T09:33:20Z","updated_at":"2015-05-12T16:05:34Z","closed_at":null,"body":"I'm getting the following error:\r\n\"NetworkError: 500 Internal Server Error - http://127.0.0.1:5000/admin/models\"\r\n\r\nIn app.js:\r\n\r\n    var mongooseadmin = require('mongooseadmin');\r\n    var options = {\r\n        title: 'The Hub'\r\n        };\r\n    app.use(mongooseadmin('/admin', options));\r\n\r\nIn .models/user.js:\r\n\r\n    //new user model\r\n\r\n    var mongoose = require('mongoose');\r\n    var multer  = require('multer');\r\n    var bcrypt = require('bcrypt-nodejs');\r\n    var crypto = require('crypto');\r\n    var secrets = require('../config/secrets');\r\n    var timestamps = require('mongoose-timestamp');\r\n    var Schema = mongoose.Schema;\r\n    var ObjectId = Schema.ObjectId;\r\n    var userSchema = new mongoose.Schema({\r\n    email: { type: String, unique: true, lowercase: true },\r\n    password: String,\r\n    profile: {\r\n      name: { type: String, default: '' },\r\n      gender: { type: String, default: '' },\r\n      location: { type: String, default: '' },\r\n      website: { type: String, default: '' },\r\n      picture: { type: String, default: '' }\r\n    },\r\n      post             : [postSchema],\r\n      resetPasswordToken: String,\r\n      resetPasswordExpires: Date\r\n    });\r\n\r\n    module.exports = mongoose.model('User', userSchema);\r\n\r\nThe admin page loads at /admin but appears blank except for the title. Any idea why?"},"comment":{"url":"https://api.github.com/repos/Webura/mongooseadmin/issues/comments/101331894","html_url":"https://github.com/Webura/mongooseadmin/issues/1#issuecomment-101331894","issue_url":"https://api.github.com/repos/Webura/mongooseadmin/issues/1","id":101331894,"user":{"login":"Webura","id":8349496,"avatar_url":"https://avatars.githubusercontent.com/u/8349496?v=3","gravatar_id":"","url":"https://api.github.com/users/Webura","html_url":"https://github.com/Webura","followers_url":"https://api.github.com/users/Webura/followers","following_url":"https://api.github.com/users/Webura/following{/other_user}","gists_url":"https://api.github.com/users/Webura/gists{/gist_id}","starred_url":"https://api.github.com/users/Webura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Webura/subscriptions","organizations_url":"https://api.github.com/users/Webura/orgs","repos_url":"https://api.github.com/users/Webura/repos","events_url":"https://api.github.com/users/Webura/events{/privacy}","received_events_url":"https://api.github.com/users/Webura/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T16:05:34Z","updated_at":"2015-05-12T16:05:34Z","body":"Hi Bradley!\r\n\r\nThank you for the issue ticket I have just updated mongooseadmin so that it supports sub documents, can you check again. Unfortunately we don't support arrays yet. \r\n\r\nBut if you would like to contribute, I would be very happy."}}