-
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
Tanja and Averi -- RideShareRails -- Carets #13
base: master
Are you sure you want to change the base?
Conversation
merge routes and views with application css and html files
Rideshare-RailsWhat We're Looking For
|
total = 0.0 | ||
driver_trips = self.trips | ||
trip_count = driver_trips.length | ||
driver_trips.each do |trip| |
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.
An enumerable would go well here. :D
validates :name, presence: true | ||
validates :phone_number, presence:true | ||
|
||
def total_cost |
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.
This method seems a repetition of the same functionality in driver.rb
.
<%= link_to "Add Passenger", new_passenger_path, class:"button" %> | ||
<%= link_to "Home", root_path, class:"button" %> | ||
|
||
<%= will_paginate(@passengers) %> |
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.
Nice use of pagination!
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