相关疑难解决方法(0)

ActionController的:: InvalidAuthenticityToken

下面是一个错误,由我的Rails应用程序中的表单引起:

Processing UsersController#update (for **ip** at 2010-07-29 10:52:27) [PUT]
  Parameters: {"commit"=>"Update", "action"=>"update", "_method"=>"put", "authenticity_token"=>"ysiDvO5s7qhJQrnlSR2+f8jF1gxdB7T9I2ydxpRlSSk=", **more parameters**}

ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
Run Code Online (Sandbox Code Playgroud)

对于每个非get请求都会发生这种情况,正如您所看到的那样authenticity_token.

ruby-on-rails

129
推荐指数
10
解决办法
19万
查看次数

标签 统计

ruby-on-rails ×1