Created
May 14, 2009 23:25
-
-
Save boscomonkey/111984 to your computer and use it in GitHub Desktop.
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
# This RoR controller uses "protect_from_forgery" declaration to let anyone | |
# perform a POST to create another instance of an UnsafeObject. | |
# | |
class UnsafeObjectsController < ApplicationController | |
protect_from_forgery :except => :create | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment