Skip to content

Instantly share code, notes, and snippets.

@boscomonkey
Created May 14, 2009 23:25
Show Gist options
  • Save boscomonkey/111984 to your computer and use it in GitHub Desktop.
Save boscomonkey/111984 to your computer and use it in GitHub Desktop.
# 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