Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class TimeEntriesController < AuthenticatedController
|
|
|
|
|
|
|
|
def new
|
|
|
|
@bikes = Bike.all.map{ |b| [b.to_s , b.id] }
|
|
|
|
if bike = current_user.bike
|
|
|
|
@bikes.unshift( [bike.to_s, bike.id] )
|
|
|
|
end
|
|
|
|
@bikes.unshift( ["Non-bike work", -1] )
|
|
|
|
end
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|