古いバージョンのドキュメントです。最新のバージョンはRails7.0.0

Railsドキュメント(v6.0.2.1)

Fromでのauthenticity_tokenの付与について

説明

「:remote=>true」オプションが指定されたform_tagでauthenticity_tokenを付与するか

使い方

config.action_view.embed_authenticity_token_in_remote_forms = Bool値

config.action_view.embed_authenticity_token_in_remote_forms = false