Error In Rendering Jade Files
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