Destroy Users
Let’s implement the last of the HTTP functions, DELETE, for the 'User' model in the application.
We'll cover the following...
We have built many actions on the users
controller with quite a few tests, but are not done yet. We need one more action—the act of destruction—so let’s implement the DELETE
function.
Define the destroy
action
The implementation of the destroy
action is also quite simple. We will add the following ...