1using method-override in your index.js
21. npm install method-override --save
32. var methodOverride = require("method-override");
43. app.use(methodOverride("_method"));
5//'_method' is what methodOverride will look for
6method override in your UPDATE route:
7* <form action = "/campgrounds/<%=campground._id%>/edit?_method=PUT"
8 method = "POST">
9and EDIT routes:
10