-
Notifications
You must be signed in to change notification settings - Fork 25
carly & lindsay - edges - videostoreapi #19
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
"merge ?conflict"
Video StoreWhat We're Looking For
Hi y'all! This project has a really solid start-- from what I can tell, the code that is there looks good. I think there was one major hangup about creating a movie. Once that's fixed, most of Wave 2 is fixed! I'm adding a comment there. Other than that, the parts that are missing are a lot of the update logic for Rentals... updating a rental (with checkin and checkout) also affects the movies and customers. That being said, I see a good start: the tests for controllers and models feel good too. Let me know if y'all have any questions |
| private | ||
|
|
||
| def movie_params | ||
| params.require(:movie).permit(:title, :overview, :release_date, :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.
In Rails when we used forms, params would come back populated with a nested structure that had movie in it. In this API, we won't have that nested structure, so we need to take out the .require('movie') bit. When we do this, then most of Wave 2 starts working :)
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.