Error In Rendering Jade Files Error In Rendering Jade Files mongoose mongoose

Error In Rendering Jade Files


The locals in the partial is implied, so give this a try:

!= partial('../partials/photo_form', {photo: photo})


when doing partial include, it refers to the current directory the view is in..

so the response you are rendering comes from:

/views/photos/new.jade

right?so then the partial include is in the new.jade file.. which means if you do

partial('../partials/photo_form',{'whatever':'whatever'})

its looking in:

/views/partials/photo_form.jade

is that what you are expecting?because if it is in

/views/photos/photo_form.jade

just do partials('photo_form',{'whatever':'whatever'})

and it will default to the directory the parent view is in.http://expressjs.com/guide.html

and check view lookup

cheers