.note#note{:id => note.id} .note_content .date=l note.created_at, :format => :date =raw note.message .bottom #note_files.note_files{:id => note.id}=render note.note_files :javascript $(".note img").each(function(){ $(this).closest("p").addClass("large"); });