Created
August 9, 2013 11:12
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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