use DELETE and PUT methods
change /posts/edit/ url to /posts/:id/edit