新手问题 请教关于 InvalidAuthenticityToken 错误

zicjin · June 23, 2014 · 1764 hits

提交表单就出现了 InvalidAuthenticityToken 错误。我用pry调试看到在session#new里得到的form_authenticity_token变量值和页面中登录表单内的authenticity_token hidden input值是一样的,但提交表单时进入session#creat前就报InvalidAuthenticityToken 错误了。在报错页面中 HTTP Parameters 所显示的 authenticity_token 字段也是和之前 form_authenticity_token 变量值一致的:

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.