Skip to content
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

Brenda and Brandy - Rideshare - Octos #17

Open
wants to merge 75 commits into
base: master
Choose a base branch
from

Conversation

brandyaustinseattle
Copy link

@brandyaustinseattle brandyaustinseattle commented Apr 6, 2018

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

Question Answer
Describe the types of entity relationships you set up in your project and why you set up the relationships that way Passengers have many trips and drivers have many trips as well. We did it this way because trips can only have one passenger and one driver but the passengers and the drivers can have many trips.
Describe the role of model validations in your application The validations confirmed the presence of a name and phone number for a passenger. For drivers we validated the presence of a name and a vin number.
How did your team break up the work to be done? At the beginning, we divided the work by classes. Brenda worked with drivers, Brandy with passengers, and then we both worked on trips. After the web app was working, we started styling and divided the work by feature.
What features did you choose to prioritize in your project, and what features, if any, did you have to set aside to meet the deadline? We prioritized making it possible to retrieve all of the information in trips. We tried to set aside any added features and complete all the requirements first. We could have done some more styling in certain areas.
What was one thing that your team collectively gained more clarity on after completing this assignment? We gained clarity on the use of nested routes and routes in general. Using the command rails routes helped us a lot when we needed to debug and fix pages.
What is your Trello URL? https://trello.com/b/mY7e6PDv/rideshare
What is the Heroku URL of your deployed application? https://bb-rideshare.herokuapp.com/
What are two discussion points that you and your pair discussed when giving/receiving feedback from each other that you would be willing to share? We discussed how we went about splitting up the work and our willingness to be flexible in that regard. We also talked about how we worked together when stuck in certain areas.

brandyaustinseattle and others added 30 commits April 2, 2018 23:10
total += trip.cost
end

return "$#{(total/100).round(2)}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might argue against returning the formatting string here. The value is what is important for this model method, and formatting that should probably be the responsibility of the view

counter = 0
trips.each do |trip|
if trip.rating.nil?
trip.rating = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do for you? Would this be saved or used later anywhere?

@@ -0,0 +1,11 @@

<link href="https://fonts.googleapis.com/css?family=Poor+Story" rel="stylesheet">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more appropriate in the application.html.erb file than in a specific view file

<%= link_to "Request Trip", passenger_trips_path(@passenger.id), method: :post, data: {confirm: "Do you really want to request a trip for #{@passenger.name}?"} %>
</div>

<table class="passengers_show">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nitpick, but for CSS class names, we use the - rather than the _ to separate words, so this would be passengers-show instead.

def destroy
Passenger.destroy(params[:id])

redirect_back(fallback_location: passengers_path)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kariabancroft
Copy link

Rideshare-Rails

What We're Looking For

Feature Feedback
Baseline
Appropriate Git Usage with no extraneous files checked in and both partners contributing Yes
Answered comprehension questions Yes
Uses named routes (like _path) Yes
RESTful routes utilized Yes - when you have to list most of the RESTful options, it is preferable to use except over only to simplify the list
Rideshare Rails Specific Content
Table relationships Yes - the relationship looks good in both the schema file and the model files
Validation rules for Models Yes - primarily using the presence validation
Business logic is in the models Yes - totals, rating and cost logic in model methods
Database is seeded from the CSV files Yes
Trello board is created and utilized in project management I think so - but it wasn't public so I couldn't verify
Postgres database is used Yes
Heroku instance is online Yes
The app is styled to create an attractive user interface Yes - very nice overall look & feel. Data was easily accessible and readable across pages - I liked the tables you used to organize certain pieces of data.
Overall You did a nice job overall hitting the major learning goals of this assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants