lk | changes order of bikes and adds log bikes button to home page

This commit is contained in:
Louis Knapp
2015-09-18 13:48:16 -05:00
parent 2edbcb5bbf
commit b480d7b405
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ class BikesController < ApplicationController
before_action :authenticate_user!
def index
@bikes = Bike.all
@bikes = Bike.all.order(:log_number).reverse_order
@unsold_bikes = @bikes.select{ |bike|
!bike.date_sold &&
(bike.purpose == "Sale")