mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | Adds page which shows freecyclery bikes that are ready for pickup
This commit is contained in:
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user