rails InvalidAuthenticityToken iframe site:stackoverflow.com code example
Example: ActionController::InvalidAuthenticityToken rails when submitting form
// add this after form tag: <%= token_tag %>
// add this after form tag: <%= token_tag %>