mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | changes order of bikes and adds log bikes button to home page
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user