新手问题 请问在 rails 中我用 jquery 原生的异步去请求后台,为什么 rails 会将账户的会话终断。。

small_fish__ · October 22, 2012 · Last by kmin replied at October 24, 2012 · 2124 hits

我的是 rails2.3x,以前用 rails3 配置一句 <%= csrf_meta_tags %>就可以了,但是 rails2x 中貌似不行了。。。求教

找到表单里的 Authenticity Token,请求时带上。或者参考 rails 3 的做法,在 Head 标签里放 Authenticity Token,请求时找出来带上

你好,想认识你,能 aQQ 吗?

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