I'm not sure if this piece of code works, base on this blog
http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-better-cross-site-request-forging-prevention
I added this in my application.rb
# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery :secret => '803e5c100661d793057842d6e28c8a17'
And to make sure it doesn't mess up the test. Just add this at config/
environment/test.rb
# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
On Jul 16, 1:40 am, "Steven A Bristol" <
st...@lesseverything.com>
wrote: