- What do you know about modules already? If little, what would you guess modules are all about?
- Golf and basketball both use a ball. But if you're on a basketball court and ask for "the ball," no one is going to throw you a golf ball. Why? If you were as dumb as a computer, why would a golfd ball be an acceptable response?
- You've learned about the object model and method lookups. What would the imapct be of injecting an additional ancestor into a class' lookup chain?
-
Define CRUD. C - Create R - Read U - Update D - Delete
-
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' = reads the index of tasks
- GET '/tasks/:id' = reads the task with the specific id
- GET '/tasks/new' = navigates to a new form for tasks to be entered
- POST '/tasks/' = creates new task in task index
- GET '/tasks/:id/edit' = navigates to specific id to edit task
- PUT '/tasks/:id' = edits/updates task information