Louis | Adds page which shows freecyclery bikes that are ready for pickup

This commit is contained in:
Loos
2014-10-07 21:01:29 -04:00
parent 090edd24e3
commit 77e7109b9e
6 changed files with 41 additions and 0 deletions
+4
View File
@@ -38,6 +38,10 @@ class BikesController < ApplicationController
end
end
def freecyclery_pickup
@bikes_for_pickup = Bike.bikes_ready_for_pickup
end
def update
if @bike.update(bike_params)
redirect_to @bike, notice: 'Bike was successfully updated.'