Skip to content

Instantly share code, notes, and snippets.

@jdwyah
Created July 17, 2009 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdwyah/149110 to your computer and use it in GitHub Desktop.
Save jdwyah/149110 to your computer and use it in GitHub Desktop.
Ajax.Responders.register({
onCreate: function(a) {
if(a.method != 'get'){
a['parameters']['authenticity_token'] = encodeURIComponent('#{form_authenticity_token}');
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment