destroy

in app/controllers/users_controller.rb [44:49]


  def destroy
    User.find(params[:id]).destroy
    flash[:success] = "User deleted"
    redirect_to users_url, status: :see_other
  end