%h1 Listing notes

%table
  %tr
    %th Subject
    %th Message
    %th User
    %th
    %th
    %th

  - @notes.each do |note|
    %tr
      %td= note.subject
      %td= note.message
      %td= note.user
      %td= link_to 'Show', note
      %td= link_to 'Edit', edit_note_path(note)
      %td= link_to 'Destroy', note, :confirm => 'Are you sure?', :method => :delete

%br

= link_to 'New Note', new_note_path
