Rails Decal
Lecture 5 - Edit, Update, Destroy
Logistics
Remaking last lecture
Absences
Live Demo Heavy
Continuing off homework code
CRUD
Create
Read
Update
Destroy
Edit
Endpoint to destroy a particular resource
Uses DELETE request
Update
Endpoint where data from edit is sent and where resource is actually updated
Uses PUTS/PATCH request
Analogous to Create
Destroy
Get a form to edit a resource
Uses GET request
Analogous to New
Resources
In routes.rb, resources method can create seven routes in one line.
Live Coding