You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define CRUD.
CRUD is an acronym that stands for create, read, update and delete. These four words correspond to the verbs in HTTP. In order to have full CRUD functionality within a Sinatral app, the app must be able to do all four of these things.
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.
i. Read '/tasks' & GET shows view of all tasks from index.erb
ii. Read '/tasks/:id' & GET shows view of a specific task from show.erb
iii. Create 'tasks/new' & GET makes form to create a new task in new.erb
iv. Create '/tasks' & POST sends data to the server and redirect to '/tasks'
v. Update '/tasks' & GET makes a form to input and update an existing task from edit.erb
vi. Update '/tasks/:id/edit' & PUT sends data to the server to update existing task information
vii. Delete '/tasks/:id' & Delete deletes existing information