$(function () {
  $('form').submit(function(event) {
    event.preventDefault();
    console.log("Hello!")
    });
  });
})

$(function () {
  $('form#new_recipe').submit(function(event) {
    event.preventDefault();
    var $form = $(this);
    var action = $form.attr("action");
    var params = $form.serialize();


    debugger;
    });
  });

set , action, and params variables