Skip to content

Instantly share code, notes, and snippets.

@saimonmoore
Created February 4, 2011 11:16
Show Gist options
  • Save saimonmoore/810997 to your computer and use it in GitHub Desktop.
Save saimonmoore/810997 to your computer and use it in GitHub Desktop.
$$('form input[name=authenticity_token]').select(function(i) {return i.value != $$('meta[name=csrf-token]')[0].readAttribute('content');}).map(function(i) {var form = i.up('form'); form.setStyle({border: '2px solid red'}); return form;});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment