导轨in_place_edit:我怎么传递的真实性令牌? [英] rails in_place_edit: how do I pass an authenticity token?

查看:197
本文介绍了导轨in_place_edit:我怎么传递的真实性令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在现场编辑得到工作,但我遇到了这个错误:

I am trying to get in place editing working but I am running into this error:

的ActionController :: InvalidAuthenticityToken(ActionController的:: InvalidAuthenticityToken)

ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)

据我所知,现在的轨道要防止伪造和我需要通过一个表格的真实性令牌,但我不清楚如何与in_place_edit插件做到这一点。

I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with the in_place_edit plugin.

推荐答案

我找到了解决办法。我把指令这里。看看上修补in_place_edit的部分。

I found a solution. I put the instructions here. Take a look at the part on patching in_place_edit.

这篇关于导轨in_place_edit:我怎么传递的真实性令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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