-
Notifications
You must be signed in to change notification settings - Fork 26
Porkets - Jessica and Hana #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
movie model tests
Video StoreWhat We're Looking For
|
| resources :movies, only: [:index, :show, :create] | ||
|
|
||
| post "rentals/check_out", to: "rentals#check_out", as: "check_out" | ||
| post "rentals/:id/check_in", to: "rentals#check_in", as: "check_in" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need the route parameter for this action as per the assignment. Also the routes are different from the spec.
| end | ||
|
|
||
| def zomg | ||
| render json: {works: "it works!"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No status code?
| t.string "title" | ||
| t.string "overview" | ||
| t.date "release_date" | ||
| t.integer "inventory" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You either need to have an available inventory field, or better yet a method to calculate the available inventory.
Video Store API
Congratulations! You're submitting your assignment!
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.
Comprehension Questions
POST /rentals/check-inendpoint? What does the time complexity depend on? Explain your reasoning.