Rearrange to match givanse's example for rails-csrf authentication.