v7.1.3.2 -
Show latest stable
-
1 note
Register or
log in
to add new notes.
rob-twf -
February 18, 2009

4 thanks
Turn off for individual controllers/actions
To disable protection for all actions in your controller use skip_before_filter:
skip_before_filter :verify_authenticity_token
You can also pass :only and :except to disable protection for specific actions, e.g:
skip_before_filter :verify_authenticity_token, :only => :index