mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | generates log number when new bike is logged
This commit is contained in:
@@ -15,6 +15,7 @@ class BikesController < ApplicationController
|
||||
|
||||
def new
|
||||
@bike = Bike.new
|
||||
@log_number = Bike.order(:log_number).last.log_number + 1
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
Reference in New Issue
Block a user