Implement server-side rendering of datatables in users#index
This commit is contained in:
parent
86ba2d005e
commit
caa63f9c1c
4 changed files with 66 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue