Rails update.js.erb not executing javascript

后端 未结 7 1896
[愿得一人]
[愿得一人] 2020-12-13 18:35

I am building a form in rails that will edit an existing question via ajax.

After the form is submitted and the question has been updated, the update method in the c

7条回答
  •  庸人自扰
    2020-12-13 19:22

    In your $.ajax call make sure to set the dataType option to "script" otherwise the response could be interpreted in other ways and thus not executed as JS.

提交回复
热议问题