Rails update.js.erb not executing javascript

后端 未结 7 1887
[愿得一人]
[愿得一人] 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:13

    One more problem to be aware of is an error in your update.js file. Nothing will execute if there are any syntax errors. You can check this by going to your browser inspector and enabling Log XMLHttpRequests Then reviewing the output js file.

提交回复
热议问题