CRUD stands for Create Read Update & Delete. It allows us to create resources in a database, read or 'get' the resource to display, update a resource without overwriting the original resource and delete a specific resource from the database.
There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
All resources: get '/resources'
(ex. get '/tasks'
) => gives us a list of all the resources through a index.erb
file that gets interpreted to html.
One resource: get '/resources/:id
(ex. get '/tasks/1
) => gives us the specific resource through a show.erb
file that gets interpreted to html.