mirror of https://github.com/fspc/BikeShed-1.git
14 lines
359 B
14 lines
359 B
class BikesController < AuthenticatedController
|
|
|
|
def new
|
|
@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] }
|
|
@wheel_sizes.unshift( ["Select a wheel size", -1] )
|
|
end
|
|
|
|
def show
|
|
@bike = Bike.find_by_id(params[:id])
|
|
end
|
|
|
|
end
|
|
|