Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created March 4, 2010 04:12
Show Gist options
  • Select an option

  • Save scottdavis/321393 to your computer and use it in GitHub Desktop.

Select an option

Save scottdavis/321393 to your computer and use it in GitHub Desktop.
def csrf_meta_tag
out = ''
out << tag(:meta, :name => 'csrf-token', :content => form_authenticity_token)
out << tag(:meta, :name => 'csrf-param', :content => 'authenticity_token')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment