Sha256: e30d090c7372f89220ba60e26acf779df14a3216dad3dca2b0f1aae7e7e3e158

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

<h1>Listing books</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Summary</th>
    <th>Body</th>
    <th>Writer</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @books.each do |book| %>
  <tr>
    <td><%= book.title %></td>
    <td><%= book.summary %></td>
    <td><%= book.body %></td>
    <td><%= book.writer %></td>
    <td><%= link_to 'Show', book %></td>
    <td><%= link_to 'Edit', edit_book_path(book) %></td>
    <td><%= link_to 'Destroy', book, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Book', new_book_path %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
books-0.0.1 app/views/book/books/index.html.erb