Sort booths by name and enable pagination

This commit is contained in:
Angel Perez
2018-05-18 14:44:16 -04:00
parent f220c477c1
commit 2c37702298
2 changed files with 3 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
end
def manage
@booths = ::Poll::Booth.all
@booths = ::Poll::Booth.all.order(name: :asc).page(params[:page]).per(300)
@poll = Poll.find(params[:poll_id])
end