-
Notifications
You must be signed in to change notification settings - Fork 24
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
Amy & Nkiru - Pipes - VideoStoreAPI #8
base: master
Are you sure you want to change the base?
Conversation
Video StoreWhat We're Looking For
|
1 similar comment
Video StoreWhat We're Looking For
|
) | ||
else | ||
render json: {nothing: true}, status: :not_found | ||
end |
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 will literally send back { nothing: true }
as a JSON response. Not sure that's what you intended.
|
||
def customer_params | ||
params.require(:customer).permit(:id, :name, :registered_at, :address, :city, :state, :postal_code, :phone, :account_credit, :movies_checked_out_count) | ||
end |
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 to define strong params if you don't have a create
or update
action. As far as I can tell this method is never called.
# | ||
======= | ||
|
||
>>>>>>> d895f891acf50da64888798d075b4c23e843b99f |
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.
Why are there git merge markers in this file?
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.
If missing these markers is a regular problem for you, you might want to set up a pre-commit hook:
https://jondowdle.com/2015/02/block-merge-conflicts-in-commits/
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