Rails update.js.erb not executing javascript

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

    This issue isn't just because of Controller side. It is also can be in the View side which is you didn't clarify the data-type of your post request.

    Make sure in your console that the request is treated as JS.

    Reference: Similar issue

    0 讨论(0)
提交回复
热议问题