ActionController::InvalidAuthenticityToken

Rails issue I ran into. I wrote a controller action and then wrote a small form to hit the controller action. The result? A big fat error. Apparently for security purposes there is a hidden field that is generated by using the form_for tag. Or you can custom code the hidden field like so:

<input type=“hidden” name=“authenticity_token” value=“<%= form_authenticity_token%>” />