anchor.diff:        event.preventDefault();
   
         var values = $("#new_gift", this).serialize();
  -
  +      
         var posting = $.post(`/events/<%= @event.id %>/gifts`, values);
   
         posting.done(function(data) {
  
positive.code:   <ul>
      <% @event.gifts.sort_by(&:name).each do |gift| %>
        <li>
          <div id="gift-element-<%= 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>
  
negative.code:     })
    })
  </script>
  
  <script>
    $(function () {
      $('.gift-div').submit(function() {
        event.preventDefault()
        debugger
        var values = $("#edit_gift", this).serialize();
        var posting = $.post(`/events/<%= @event.id %>/gifts/`, values);
      })
    })
  </script>
  <%-#link_to 'Remove', "#", data: {confirm: 'Are you sure?'}, method: :delete %>
  