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
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