Update: I've revised and split this post into two separate posts.
Understanding Authenticity Tokens in Rails
This post explores CSRF vulnerability and how Rails mitigates it using authenticity tokens. We will will learn why they're needed, how they're generated, how Rails uses them to verify the requests, and how to disable them for specific requests.