Cannot read property '_id' of undefined
TypeError: F:\Imooc\views\pages\admin.jade:7
5| .row
6| form.form-horizontal(method="post", action="/admin/movie/new")
> 7| input(type="hidden", name="movie[_id]", value="#{movie._id}")
8| .form-group
9| label.col-sm-2.control-label(for="inputTitle") 电影名字
10| .col-sm-10
Cannot read property '_id' of undefined
at eval (eval at <anonymous> (F:\Imooc\node_modules\jade\lib\index.js:218:8), <anonymous>:100:88)
at eval (eval at <anonymous> (F:\Imooc\node_modules\jade\lib\index.js:218:8), <anonymous>:165:22)
at res (F:\Imooc\node_modules\jade\lib\index.js:219:38)
at Object.exports.renderFile (F:\Imooc\node_modules\jade\lib\index.js:380:38)
at Object.exports.renderFile (F:\Imooc\node_modules\jade\lib\index.js:370:21)
at View.exports.__express [as engine] (F:\Imooc\node_modules\jade\lib\index.js:417:11)
at View.render (F:\Imooc\node_modules\express\lib\view.js:126:8)
at tryRender (F:\Imooc\node_modules\express\lib\application.js:639:10)
at EventEmitter.render (F:\Imooc\node_modules\express\lib\application.js:591:3)
at ServerResponse.render (F:\Imooc\node_modules\express\lib\response.js:961:7)
at F:\Imooc\app.js:47:9
at Layer.handle [as handle_request] (F:\Imooc\node_modules\express\lib\router\layer.js:95:5)
at next (F:\Imooc\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (F:\Imooc\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (F:\Imooc\node_modules\express\lib\router\layer.js:95:5)
at F:\Imooc\node_modules\express\lib\router\index.js:277:22