-
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
Pipes - Tamira and Roxanne - Rideshare-Rails #10
base: master
Are you sure you want to change the base?
Conversation
…atch my passenger model. Ran db:seed
…ge that displays the names of all the passengers
… lists the name and phone number of the passenger. Made names on index page links to the passenger's show page
…nav and a footer to application.htnl.erb
…dit the passenger
… show view for passenger
… display the cost in dollars for each trip
|
||
|
||
<div class="wrapper"> | ||
<h2 class = "driver-header">All Drivers</h2> |
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.
Note that when you add HTML attributes (like classes and IDs), you don't use the same standard spacing between the =
that you are used to with Ruby. So it should be class="wrapper"
rather than class = "wrapper"
<tbody> | ||
|
||
<%# display trip in decending order by date %> | ||
<% all_trips = model.trips.order(:date) %> |
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.
Pulling in all of the trips should happen in the controller (or possibly even the model), but not in the view
total_ratings = 0 | ||
count = 0 | ||
trips.each do |trip| | ||
if trip.rating.nil? |
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.
It would be better to negate this condition and put the contents in this block rather than having an empty if
Rideshare-RailsWhat We're Looking For
|
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