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 update.js.erb file you need to escape javascript wherever you execute ruby code.
$('.container').empty().append('<%= escape_javascript( render 'update' ) %>')
This is what solved it for me ...