Sort booths by name and enable pagination
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -25,4 +25,6 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= paginate @booths %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user