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
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.
$.ajax
dataType
"script"