Louis | Abstracts freecyclery functionality and adds closed applications page

This commit is contained in:
Loos
2014-10-07 21:17:44 -04:00
parent 77e7109b9e
commit b717cba355
7 changed files with 43 additions and 5 deletions
-4
View File
@@ -38,10 +38,6 @@ 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.'
+13
View File
@@ -0,0 +1,13 @@
class FreecycleryController < ApplicationController
before_action :authenticate_user!
def closed_applications
@closed_applications = Client.closed_applications
end
def ready_for_pickup
@bikes_for_pickup = Bike.bikes_ready_for_pickup
end
end