def enable
      if @user.enabled?
        flash[:warning] = "User #{@user} is already enabled."
        unless inline_request?
          redirect_to users_path and return
        end
      else
        if @user.enable
          flash[:success] = "User #{@user} has been enabled."
        else
          flash[:danger] = "Failed to enable user #{@user}."
        end
      end
      if inline_request?
        render 'show', formats: [ :json ]
      else
        redirect_to users_path
      end
    end
def enable
      if @user.enabled?
        flash[:warning] = "User #{@user} is already enabled."
        unless inline_request?
          redirect_to users_path and return
        end
      else
        if @user.enable
          flash[:success] = "User #{@user} has been enabled."
        else
          flash[:danger] = "Failed to enable user #{@user}."
        end
      end
      if inline_request?
        render 'show', formats: [ :json ]
      else
        redirect_to users_path
      end
    end
PUT /incline/users/1/enable