Displaying 1 result from an estimated 1 matches for "ajaxbasesetopt".
2008 May 07
2
Inserting authenticity token into AJAX request params
Hi all.  I am trying to find a way to insert an authenticity_token
into the params of an Ajax request before it gets sent.
I''ve got this much:
  Ajax.Responders.register({
    onLoading: function(req){
      if ((req.options.method == ''post'') && !
Object.keys(req.options.parameters).include(''authenticity_token'')){
---->