0
我建立使用軌道管理紅寶石API(這是工作)和軌道具有這一問題管理導入:紅寶石無法驗證CSRF令牌真實性API軌管理員進口
無法驗證CSRF令牌真實性。
試圖與
module Api::V1
class ApiController < ApplicationController
skip_before_action :verify_authenticity_token
...
class ApplicationController < ActionController::API
skip_before_action :verify_authenticity_token
停用它,但結果是一樣的錯誤。有任何想法嗎?
謝謝
P.S: 也越來越此當我把上面的代碼(因爲它apears不執行)
"status":500,"error":"Internal Server Error" "exception":"# ArgumentError: Before process_action callback :verify_authenticity_token has not been defined"