lk | paginates bikes & orders by log # desc

This commit is contained in:
Louis Knapp
2015-09-18 16:53:46 -05:00
parent 9948681b68
commit cc3f0f8c77
6 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -34,4 +34,4 @@
%td= bike.model
%td= link_to 'Show', bike
%td= link_to 'Edit', edit_bike_path(bike)
=will_paginate @bikes
+5 -3
View File
@@ -5,10 +5,12 @@
%table.table.table-striped.table-bordered.table-hover
%thead
%tr
%th Bike
%th Bike
%th Select
-@bikes.each do |bike|
%tr
%td= bike.name
%td= check_box("print_bikes", bike.id)
=submit_tag 'Generate Labels', class: "btn btn-default"
%td= check_box("print_bikes", bike.id)
=will_paginate @bikes
%br
=submit_tag 'Generate Labels', class: "btn btn-default"