%p#notice= notice

%h1 Listing Books

%table
  %thead
    %tr
      %th Title
      %th Content
      %th User
      %th(colspan=3)

  %tbody
    - @books.each do |book|
      %tr
        %td= book.title
        %td= book.content
        %td= book.user.name
        %td= link_to 'Show', book
        %td= link_to 'Edit', edit_book_path(book)
        %td= link_to 'Destroy', book, method: :delete, data: { confirm: 'Are you sure?' }

%br

#{link_to 'New Book', new_book_path}

%p#notice= notice

%h1 Listing Books

%table
  %thead
    %tr
      %th Title
      %th User
      %th(colspan=3)

  %tbody
    - @books.each do |book|
      %tr
        %td= book.title
        %td= book.user.name
        %td= link_to 'Show', book
        %td= link_to 'Edit', edit_book_path(book)
        %td= link_to 'Destroy', book, method: :delete, data: { confirm: 'Are you sure?' }

%br

#{link_to 'New Book', new_book_path}

Remove book content from index
Remove book content from index
