%= remotipart_response do %> <% unless @comment.errors.any? %> $('#comments').append( '<%= escape_javascript( render @comment ) %>' ); $('#new-comment-form-container').find('input:not(:submit),select,textarea').val(''); <% if request.put? %> $('#comments').after('PUT request!'); <% end %> <% else %> var $form = $('#new_comment'), $errorDiv = $('