The CSRF prevention built in to Rails is causing some problems for some automated load testing we are doing, and I want to turn it off for the duration of the process. How do I do this?
|
I love simple questions with clear answers.
If you want to do this for testing only you can move that into one of the environment files (obviously, you'll be touching
See here for details. (Continuing Rails' wonderful tradition of having documentation of core features in 2 year old blog posts, which were distilled from commit logs.) |
|||||
|
|
In Rails 3, remove the |
|||
|
|