% if flash[:notice] %> $("#flash").html( "<%= escape_javascript(flash.delete(:notice)) %>" ); <% end %>