form action delete code example
Example: form action delete
<form action="/posts/xxxxx" method="POST">
<input type="hidden" name="_method" value="DELETE">
<input type="submit" value="delete">
</form>
<form action="/posts/xxxxx" method="POST">
<input type="hidden" name="_method" value="DELETE">
<input type="submit" value="delete">
</form>