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
What do you know about modules already? If little, what would you guess modules are all about?
they are a collection of methods that can be required in other files similar to a class. If required, those methods become available to the class they are contained in.
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?
a golf ball would be an acceptable response because it is still a ball.
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?
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.
a. GET '/tasks' See all tasks
b. GET '/tasks/:id' See a single task
c. GET 'tasks/new' See form to enter a new task
d. POST '/tasks' Submit data to create a new task
e. GET '/tasks/:id/edit' Pull up a form (for specific id) in order to edit
f. PUT '/tasks/:id' Submit data (for specified id) from edit