Louis | user can mark bikes as picked up from the available freecyclery bikes page

This commit is contained in:
Loos
2014-12-22 13:50:21 -06:00
parent d0a91882e3
commit 157712ac67
5 changed files with 23 additions and 8 deletions
@@ -8,10 +8,12 @@
%th Brand
%th Model
%th Client
%th
%tbody
- @bikes_for_pickup.each do |bike|
%tr
%td= bike.brand
%td= bike.model
%td= bike.client.name
%td= button_to "Mark as picked up", {controller: "bikes", action: "mark_picked_up", id: bike.id}, method: :patch, class: "btn btn-default"