rails in_place_edit: how do I pass an authenticity token?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 08:41:38

This isn't a complete tested answer, but I took a look at the plugin code, and it looks like you could use the :with option to tack the authenticity token onto the end of the request parameters. Something along the lines of:

in_place_editor("my_element", :with => "form.serialize() + '&authenticity_token=#{form_authenticity_token}';")

(I have not tested the above code).

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!