-
Notifications
You must be signed in to change notification settings - Fork 25
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
Karinna & Kat - VideoStoreAPI - Octos #8
base: master
Are you sure you want to change the base?
Conversation
…ons. All tests passing
…troller, and rendering json.
…because it's part of the assignment and we thought it was cute.
…d rails tests passing.
…kouts with no inventory.
Video StoreWhat We're Looking For
|
|
||
instance = self.create!(cust_data) | ||
|
||
if hash["registered_at"] |
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.
This seems like good logic, but why is it after the create!
?
def index | ||
@customers = Customer.request_query(params, Customer) | ||
|
||
if @customers.empty? |
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.
Generally an empty set of data isn't an error, but rather it would just return an empty array indicating that there was no data available
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