index.js.haml 174 Bytes Edit Raw Blame History 1 2 3 4 - unless @notes.blank? var notesHtml = "#{escape_javascript(render 'notes/notes')}"; - new_note_ids = @notes.map(&:id) NoteList.setContent(#{new_note_ids}, notesHtml);