I have a rails app that serves some APIs to an iPhone application.
I want to be able to simply post on a resource without minding on get the correct CSRF token.
I tried some methods that I see here in stackoverflow but it seems they no longer work on rails 3.
Thank you for helping me.
In the controller where you want to disable CSRF the check:
Or to disable it for everything except a few methods:
Or to disable only specified methods:
More info: RoR Request Forgery Protection