-
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
Ampers: Angela & Abinnet #20
base: master
Are you sure you want to change the base?
Conversation
…ng resources, started making model for trips
…ids as foreign keys in trip model.
…new driver and passenger view pages.
… they are toggling correctly but still confused by post vs patch
…was annoying when testing
…ork on method to get available drivers to work
…ng by 100 like we do with the seeded database integers
merging my branch
…es via hyperlinks
… and deactivate account from passenger and driver pages
Rideshare-RailsWhat We're Looking For
You have a typo on your drivers form page, so if there are errors your site breaks :) You typed What happens if there are no trips associated with a driver? Then total would be 0.0 and trip_count is 0 and rating is 0. Ruby evaluates 0.0 / 0 as NaN or "Not A Number." When it gets to the driver/show.html.erb view, NaN.to_s evaluates to just "NaN" so it shows up on the driver page as "NaN" on the page. It'll show up like this: "Minnie Dach Your way of formatting costs doesn't take into account two decimal points ending in 0. For example, cost shows as "$100.0" and not "$100.00" The flow for a passenger requesting a ride and then rating it isn't quite what we expected-- we wanted a trip to be created without a rating, and for passengers to be able to view the trip and rate it afterwards. Even so, we got something out of trips! The "deactivate" function is an interesting solution to the deleting problem, but we were hoping that you two would practice deleting something out of the database using Rails conventions of destroying. That being said, you two did practice making custom routes and logic (like Overall good work-- truthfully I see a few typos and some "work-arounds"/first-passes at some problems rather than a final iteration, but I don't otherwise see any red flags. My hope is that if you two had another week on this project you would have been able to solve these problems. Cheers! |
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