Update Admin user datatables to use AJAX

This commit is contained in:
James Mason 2018-06-18 10:04:17 -07:00
parent 5ffe59fa4b
commit e086ab7817
No known key found for this signature in database
GPG key ID: 1B3951886C449023
6 changed files with 290 additions and 53 deletions

View file

@ -20,7 +20,12 @@ module Admin
end
def index
@users = User.all
respond_to do |format|
format.html
format.json do
render json: UserDatatable.new(view_context)
end
end
end
# This action allow admins to manually toggle confirmation state of another user