Skip to content

Kimberley Z and Sara F - Pipes - initial pull request#11

Open
kimpossible1 wants to merge 127 commits into
Ada-C8:masterfrom
kimpossible1:master
Open

Kimberley Z and Sara F - Pipes - initial pull request#11
kimpossible1 wants to merge 127 commits into
Ada-C8:masterfrom
kimpossible1:master

Conversation

@kimpossible1

@kimpossible1 kimpossible1 commented Oct 3, 2017

Copy link
Copy Markdown

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 Entities: Trips, Drivers, Passengers. A trip has a passenger and a driver. A driver has one or many trips. A passenger has one or many trips.
Describe the role of model validations in your application This makes sure a new element does not get added to database without the information required.
How did your team break up the work to be done? Using Trello. Mostly we tackled items as they became the priority in a logical order.
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 basic functionality - having the correct view pages, being able to see the lists from the database and individual elements. Then we prioritized being able to create new, edit, and then delete. After the basics were done, we worked on styling and then deployment. We would have styled it more if given more time.
What was one thing that your team collectively gained more clarity on after completing this assignment? Kimberley got a bit more comfortable with CSS, and more clarity on how to set up models and migrate. Also, really learned how to use db:reset - solid now. Also learned, about putting code in models and pretty comfortable with that now. Sara learned a lot more about the roles of the controller pages. She also now feels more comfortable with inserting ruby code in erb files, and also understand what she's looking at when looking at models and routes.
What is your Trello URL? https://trello.com/b/cD6WyTzB/rideshare
What is the Heroku URL of your deployed application? http://tasklist-kimberley-sara.herokuapp.com

kimpossible1 and others added 30 commits October 2, 2017 16:59
…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.
…. 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.
…ect requirements for all that needs to be updatable. Driver, Passenger, etc?
Comment thread app/models/driver.rb
def avg_rating
if trips.count > 0
sum = 0
trips.each do |trip|

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 } %>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice job using a partial for the errors as well as this form

Rating: <%= @trip.rating %>
</li>
<li>
Cost: $<%= '%.2f'%(@trip.cost/100) %>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens if this update operation fails?

@kariabancroft

Copy link
Copy Markdown

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.

@kimpossible1

kimpossible1 commented Oct 13, 2017 via email

Copy link
Copy Markdown
Author

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.

2 participants