lk | generates log number when new bike is logged

This commit is contained in:
Loos
2015-04-15 21:09:34 -05:00
parent 3f949080f4
commit 9e1f397fd7
4 changed files with 19 additions and 10 deletions
+1
View File
@@ -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