ActionController::InvalidAuthenticityToken [英] ActionController::InvalidAuthenticityToken

查看:51
本文介绍了ActionController::InvalidAuthenticityToken的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Below is an error, caused by a form in my Rails application:

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):

对于每个非 get 请求都会发生这种情况,并且如您所见,authenticity_token 就在那里.

This happens for every non-get request and, as you see, authenticity_token is there.

推荐答案

问题从 2.3.8 降级到 2.3.5 解决.(以及臭名昭著的您正在被重定向."问题)

Problem solved by downgrading to 2.3.5 from 2.3.8. (as well as infamous 'You are being redirected.' issue)

这篇关于ActionController::InvalidAuthenticityToken的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆