Skip to content

Commit

Permalink
fixied table issue
Browse files Browse the repository at this point in the history
  • Loading branch information
halimkhaldi committed Mar 5, 2018
1 parent 2c9debc commit b3ffdf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/rentals_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def show
@rentals=User.find(session[:user_id]).rental.where("drop_date != 'nill' ")
@rentals.each do |r|
@vehicle=r.vehicle
@local_start=@vehicle.local
@local_end=Local.find(r.local_drop)
@local_start=r.local
@local_end=Local.find_by_id(r.local_drop.to_i)
@history.push({rental:r,vehicle:@vehicle,local_start:@local_start,local_end:@local_end})

end
Expand Down

0 comments on commit b3ffdf4

Please sign in to comment.