1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-23 01:23:24 -05:00

lk | bike name includes color & log number

This commit is contained in:
Louis Knapp 2015-10-10 12:24:03 -05:00
parent 2ac95bd99b
commit a58569a1a8
3 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class Bike < ActiveRecord::Base
validates :serial_number, presence: true
def name
self.brand + ' ' + self.model
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")"
end
def client

View File

@ -0,0 +1,5 @@
# Date
Date::DATE_FORMATS[:default] = "%m/%d/%Y"
# Time
Time::DATE_FORMATS[:default] = "%m/%d/%Y"

View File

@ -1,3 +1,10 @@
print sales labels should not show freecyclery bikes
show log number next to bikes (color model make lognumber)
search for bike based on log #
convert to bootstrap-less or something