-
Define CRUD. CRUD stands for C reate, R ead/Retrieve, U pdate, D elete and these refer to the four functions for working with stored information.
-
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.
- Verb: GET Path: /index See all the items that are stored (Read)
- Verb: GET Path: /item See a single item that is stored (Read)
- Verb: GET Path: /new Load a form in order to create a new item in the database (Create)
- Verb: POST Path: /index Store the item in the database (Create)
- Verb: GET Path: /item/update Load a form in order to update the attributes of an item (Update)