- Define CRUD.
CRUD stands for Create, Read, Update, and Delete which are associated with the verbs POST, GET, UPDATE, and DELETE in HTTP.
-
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.
-
READ '/tasks' - GET a view of all tasks from index.erb
-
READ '/tasks/:id' - GET a view of a specific task from show.erb
-
CREATE(pt1) 'tasks/new' - GET a form to create a new task in new.erb
-
CREATE '/tasks' - POST data to the server and redirect to '/tasks'