LoginSignup
1
0

More than 3 years have passed since last update.

ActionController::InvalidAuthenticityToken

Last updated at Posted at 2019-05-26

Postを削除しようとしたらエラーが、、、

ActionController::InvalidAuthenticityToken

Rubyのバージョン

ruby -v '2.4.0'

解決方法

application_controller.rb

class ApplicationController < ActionController::Base
  protect_from_forgery         //ここを追加
end

参考記事
https://qiita.com/_ayk_study/items/88269643c675fd4ca975

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0