Use the form action set by rails

`form.action` is `undefined`. `$(form).attr('action')` is the form action set by rails