- Define CRUD.
Create Read Update Delete - Create an object/program/app, Read in data (from user or from another object), Update Object, Delete when finished.
- 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.
- GET /tasks - Show all tasks
- GET /tasks/:id - Show a specific task
- GET /tasks/new - Show a create form
- POST /tasks - Submit a form and Redirect to /tasks
- GET /tasks/id/edit - Show an edit form
- PUT /tasks:id - Update a task
- DELETE /tasks:id - Delete a task
- Why do we use set method_override: true?
To allow us to override a given method with a new method name for the call.
- Explain the difference between value and name in this line: .
- What are params? Where do they come from?