Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Deleting Entries from a Table

Rahul Singh
seal-mask
.a{fill-rule:evenodd;}techdegree
Rahul Singh
Full Stack JavaScript Techdegree Student 45 Points

Both the router.put and router.delete routes don't work for me. They throw 404 errors when I use the exact code as shown

After researching I found that browsers don't support put and delete http requests

If it's the same problem I had, then it's because I didn't have method-override in my project. This part in the delete pug file won't work without it "?_method=DELETE", method="post" The link Thomas posted sheds some light on why that is. https://www.npmjs.com/package/method-override