Kimberley Z and Sara F - Pipes - initial pull request#11
Open
kimpossible1 wants to merge 127 commits into
Open
Kimberley Z and Sara F - Pipes - initial pull request#11kimpossible1 wants to merge 127 commits into
kimpossible1 wants to merge 127 commits into
Conversation
… for strong params, and update method
…to passenger#index view to output a list of passengers, with their phone numbers and if potentially completed trips. Did not write the code for compelted trips. We can delete this if we don't want it later.
…ender partial for _nav
…r, entered the code for Drivers#index
…. Started adding validation. Need to figure out how to get error messages.
…ch trip will link to the full trip details page. It does not work yet. Need to flesh out Trips Controller etc next so that it will all work.
…d Trips#Show page.
…ect requirements for all that needs to be updatable. Driver, Passenger, etc?
…total_earnings (minus 15%)
| def avg_rating | ||
| if trips.count > 0 | ||
| sum = 0 | ||
| trips.each do |trip| |
There was a problem hiding this comment.
You could also use an enumerable method to make this code more succinct.
| @@ -0,0 +1,13 @@ | |||
| <section class="form"> | |||
| <%= render partial: 'layouts/error_messages', locals: { model: @driver } %> | |||
There was a problem hiding this comment.
Nice job using a partial for the errors as well as this form
| Rating: <%= @trip.rating %> | ||
| </li> | ||
| <li> | ||
| Cost: $<%= '%.2f'%(@trip.cost/100) %> |
There was a problem hiding this comment.
You'll learn more about view helpers later - but this would be a great place to use one so that you don't have to copy/paste the way to format $ every time you need it in a view
| def update | ||
| @driver = Driver.find(params[:id]) | ||
| @driver.update(driver_params) | ||
| @driver.save |
There was a problem hiding this comment.
What happens if this update operation fails?
Rideshare-RailsWhat We're Looking For
|
Author
|
HI Kari,
Thanks for the feedback! We did not receive instruction on how to upload
files to heroku but our databse was seeded. I've made the Trello board
public now.
Thanks!!
Kimberley
…On Fri, Oct 13, 2017 at 11:18 AM, Kari Bancroft ***@***.***> wrote:
Rideshare-Rails What We're Looking For
Feature Feedback
*Baseline*
Appropriate Git Usage with no extraneous files checked in and both
partners contributing Contributions look good - you should continue to
focus on meaningful commit messages. Envision your commit history as a map
of how you've written your code that will need to be traced by someone else
in the future.
Answered comprehension questions Looks good
Uses named routes (like _path) Yes
RESTful routes utilized Looks good - style nitpick: put the root route at
the top of the routes file
*Rideshare Rails Specific Content*
Table relationships Schema file and model relationships look good
Validation rules for Models Nice job using the presence validations - I'd
like to see you try some of the other types out in future projects
Business logic is in the models Yes - totals and averages
Database is seeded from the CSV files Yes? Probably/possibly?
Trello board is created and utilized in project management Could you make
your Trello board public so I can take a look?
Postgres database is used Yes
Heroku instance is online Yes! I really like your theme of "Ride4Change".
Awesome!
The app is styled to create an attractive user interface Yes - I like the
way you used the driver and passenger names in the links to their
individual show pages.
*Overall* Nice job overall hitting the major learning goals of this
assignment.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYj-_nDAcSfn-fFedq6haZ3nij7eZDUbks5sr6l1gaJpZM4Prawd>
.
|
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