Skip to content

Instantly share code, notes, and snippets.

@convexstyle
Created August 9, 2013 11:12
Show Gist options
  • Save convexstyle/6192870 to your computer and use it in GitHub Desktop.
Save convexstyle/6192870 to your computer and use it in GitHub Desktop.
If a generic form is used without CSRF code in Rails, then, add the following line to the controller.
skip_before_filter :verify_authenticity_token ,:only=>[:action_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment