mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | user can mark bikes as picked up from the available freecyclery bikes page
This commit is contained in:
@@ -61,6 +61,12 @@ class BikesController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def mark_picked_up
|
||||
@bike = Bike.find(params[:id])
|
||||
@bike.mark_picked_up
|
||||
flash[:notice] = @bike.name + ' was marked as picked up'
|
||||
redirect_to action: "ready_for_pickup", controller: "freecyclery"
|
||||
end
|
||||
|
||||
private
|
||||
def set_bike
|
||||
|
||||
Reference in New Issue
Block a user