def index
      @users = User.order("created_at desc").page([params[:page].to_i, 1].max).per(100)
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @users }
      end
    end
def index
      @users = User.order("created_at desc").page([params[:page].to_i, 1].max).per(100)
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @users }
      end
    end
GET /users
 GET /users.json