$(function(){
  $('#new_share_link').click(function(e){
    e.preventDefault();
    $('#new_share_modal').modal({
      remote: '/shares/new',
      show: true
    });
  });

  $('#new_share_form').submit(function(e){
    e.preventDefault();
    $('#new_share_modal').modal('toggle');
    $.ajax({
        type: "POST",
        url: "/shares",
        data: $(this).serialize(),
        beforeSend: customBlockUi(this)
      }).done(function(response) {
          swal({
                title: "Awesome!",
                text: "Thanks for your share!",
                confirmButtonColor: "#66BB6A",
                type: "success"
            });
      }).fail(function(response) {
        swal({
              title: "Oops...",
              text: "Something went wrong!",
              confirmButtonColor: "#EF5350",
              type: "error"
          });
      });
  });
});

@@ -188,12 +188,13 @@
 are_
-form
+modal
 ').s
@@ -199,16 +199,35 @@
 .submit(
+'#new-share-form', 
 function
@@ -298,16 +298,74 @@
 ggle');%0A
+    var data = $(event.target).serialize();%0A    debugger;%0A
     $.aj
@@ -433,27 +433,12 @@
 ta: 
-$(this).serialize()
+data
 ,%0A  

Fix ajax to target form, since its in partial