     redirect_to conn, "/flags/#{name}#actor_#{actor_id}"
   end
 
+
+  # to clear an actor gate
+  #
   delete "/flags/:name/actors/:actor_id" do
     flag_name = String.to_atom(name)
     gate = %FunWithFlags.Gate{type: :actor, for: actor_id, enabled: false}

    redirect_to conn, "/flags/#{name}#group_#{group_name}"
  end

  delete "/flags/:name/groups/:group_name" do
    flag_name = String.to_atom(name)
    group_name = String.to_atom(group_name)

  end


  # flag details
  #
  get "/flags/:name" do
    flag = get_flag(name)
    body = Templates.details(flag: flag)
