I have an Ajax form with a data-remote=\"true\"
attribute which I\'m submitting to a controller in rails.
What I\'d like to do is to use the jquery-ujs even
As of the jQuery 1.5, there is a local beforeSend callback that can be bound to your request. Documentation link and another documentation link
EDIT: The request data is available in the jqXHR object, the first parameter beforeSend callback.
beforeSend(jqXHR, settings)
Try inspecting the jqXHR object in firebug to see exactly where it stores the POST data and just append your values,