Sha256: 27c49cd049c68705e7d2b53d051871f39f069a2ff59e4183392d44b5d49f7db4

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

<p id="notice"><%= notice %></p>

<h1>Listing Admin Books</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Desc</th>
      <th>Publish at</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @admin_books.each do |admin_book| %>
      <tr>
        <td><%= admin_book.name %></td>
        <td><%= admin_book.desc %></td>
        <td><%= admin_book.publish_at %></td>
        <td><%= link_to 'Show', admin_book %></td>
        <td><%= link_to 'Edit', edit_admin_book_path(admin_book) %></td>
        <td><%= link_to 'Destroy', admin_book, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminscaffold-1.0.1 test/dummy/app/views/admin/books/index.html.erb
adminscaffold-1.0.0 test/dummy/app/views/admin/books/index.html.erb