Implement server-side rendering of datatables in users#index

This commit is contained in:
Nishanth Vijayan 2016-08-01 02:32:48 +05:30
parent 86ba2d005e
commit caa63f9c1c
4 changed files with 66 additions and 31 deletions

View file

@ -7,7 +7,10 @@ module Admin
end
def index
@users = User.all
respond_to do |format|
format.html
format.json { render json: UsersDatatable.new(view_context) }
end
end
def show