Pipes - Tamira and Roxanne - Rideshare-Rails #10
Open
tvojnar wants to merge 118 commits into
Open
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.
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.
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.
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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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