Bike photo upload

This commit is contained in:
Ilya Konanykhin
2017-01-18 18:38:29 +06:00
parent a68e7eca56
commit 5f7eb43f63
10 changed files with 1406 additions and 105 deletions
+1
View File
@@ -1,6 +1,7 @@
class BikesController < AuthenticatedController
def new
@bike = Bike.new bike_purpose_id: 1
@brands = BikeBrand.all.map{ |b| [b.brand, b.id] }
@brands.unshift( ["Select a brand", -1] )
@wheel_sizes = BikeWheelSize.all.map{ |w| [w.display_string, w.id] }