Remote Forgery Protection is a Rails plugin that automatically adds authenticity token to Ajax requests.