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

lk | old bikes with non-standard types no longer appear as bmx's

This commit is contained in:
Louis Knapp 2015-12-30 10:28:30 -06:00
parent 6f209bda14
commit 071734cac5

View File

@ -23,7 +23,7 @@
.form-group
= f.label "Type:", class: "col-sm-4 control-label"
.col-sm-6
= f.select :bike_type, Bike.bike_types, {}, class: "selectpicker", disabled: disabled
= f.select :bike_type, options_for_select( Bike.bike_types + [[@bike.bike_type, @bike.bike_type]], @bike.bike_type), {}, class: "selectpicker", disabled: disabled
.form-group
= f.label "Color:", class: "col-sm-4 control-label"