-
Notifications
You must be signed in to change notification settings - Fork 27
Julia - Steph - Branches #8
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
…assenger and Driver controller.
…into steph-rideshare
Rideshare RailsWhat We're Looking For
Well done on this project, you two! The app code looks INCREDIBLE, the tests are EXTREMELY well-written and thorough. You all adhered to best practices when it comes to putting logic in the models, strong params, limited nested routes, etc. You two have one big bug: When deleting a driver or a passenger, if the driver or passenger still has trips associated with them, then your Rails app crashes and gives back a 500 server error. The error message associated is "update or delete on table "drivers" violates foreign key constraint "fk_rails_e7560abc33" on table "trips" DETAIL: Key (id)=(1) is still referenced from table "trips".", meaning that Rails by default doesn't want you all to delete the driver if there's a trip record associated with it... There are two ways to go from here: Either find a way to delete the data associated with the driver before deleting the driver, or find a way to disconnect the driver from the associated data. Either is valid, though most people tend to delete the trip associated with the driver. That being said, the code looks great; great work you two! Keep it up! |
Rideshare-Rails
Congratulations! You're submitting your assignment! These comprehension questions should be answered by both partners together, not by a single teammate.
Comprehension Questions