anchor.diff:    <ul>
       <% @event.gifts.sort_by(&:name).each do |gift| %>
         <li>
  -        <div class="gift-div" id="gift-element-<%= gift.id %>">
  +        <div class="gift-div" id="gift-element-<%= gift.id %>" data-id="<%= gift.id %>">
             <%= gift.name %> - <a href="#" class="editLink" data-id="<%= gift.id %>">Edit</a> <a href="#" class="removeLink" data-id="<%= gift.id %>">Remove</a>
             <% gift.givers.each do |giver| %>
               <ul>
  
positive.code:   $(function () {
      $('.gift-div').submit(function() {
        event.preventDefault()
        debugger
        var values = $("#edit_gift", this).serialize();
        var posting = $.post(`/events/<%= @event.id %>/gifts/`, values);
      })
    })
  </script>
  
negative.code:       event.preventDefault();
  
        var values = $("#new_gift", this).serialize();
  
        var posting = $.post(`/events/<%= @event.id %>/gifts`, values);
  
        posting.done(function(data) {
  