CSRF対策でのエラー
コントローラに
"protect_from_forgery"を入れると解決する。
class AdminController < ApplicationController protect_from_forgery :secter => 'con', :only => :index scaffold :product end
コントローラに
"protect_from_forgery"を入れると解決する。
class AdminController < ApplicationController protect_from_forgery :secter => 'con', :only => :index scaffold :product end