Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以前のコントローラー内から別のコントローラーに POST を実行する必要があります。コントローラー内からauthenticity_token の値を取得するにはどうすればよいですか?
TY、フレッド
authenticity_tokenあなたは通り抜けることができますparams[:authenticity_token]
authenticity_token
params[:authenticity_token]
あなたのユースケース(別のコントローラーからコントローラーを呼び出す)が良い選択であるかどうかはわかりませんが。