$("#ns_settings_ui #setting_<%= @setting.id -%>").replaceWith("<%= escape_javascript(render partial: 'edit', locals: {setting: @setting}) %>"); $("#ns_settings_ui #setting_<%= @setting.id -%>").append('Updated'); $("#ns_settings_ui #setting_<%= @setting.id -%> .notice").delay(1000).fadeOut('slow');