Rails Form Caching Ignore Authenticity Token
Join the DZone community and get the full member experience.Join For Free
Credit goes to http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-better-cross-site-request-forging-prevention Disable site-wide (application.rb
self.allow_forgery_protection = falseController specific (top of controller)
skip_before_filter :verify_authenticity_tokenSpecifying certain actions
protect_from_forgery :only => [:update, :delete, :create] #or protect_from_forgery :except => [:update, :delete, :create]
Cache (computing) Form (document) Authenticity (reenactment)
Opinions expressed by DZone contributors are their own.