Sha256: 5ca64fa0f370eb60fdb4af734328c673e2d488b091ea118f79c35db683b418af

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

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

<h3>Listing Pages</h3>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Featured</th>
      <th>Category</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @pages.each do |page| %>
      <tr>
        <td><%= page.title %></td>
        <td><%= page.featured %></td>
        <td><%= page.category.name %></td>
        <td><%= link_to 'Show', page %></td>
        <td><%= link_to 'Edit', edit_page_path(page) %></td>
        <td><%= link_to 'Destroy', page, method: :delete, data: { confirm: "Are you sure?" } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Page', new_page_path %>

Version data entries

15 entries across 5 versions & 1 rubygems

Version Path
paginas-0.2.3.1 test/dummy2/categories/index.html.erb
paginas-0.2.3.1 test/dummy2/app/views/paginas/pages/index.html.erb
paginas-0.2.3.1 app/views/paginas/pages/index.html.erb
paginas-0.2.3 app/views/paginas/pages/index.html.erb
paginas-0.2.3 test/dummy2/categories/index.html.erb
paginas-0.2.3 test/dummy2/app/views/paginas/pages/index.html.erb
paginas-0.2.2 test/dummy2/app/views/paginas/pages/index.html.erb
paginas-0.2.2 app/views/paginas/pages/index.html.erb
paginas-0.2.2 test/dummy2/categories/index.html.erb
paginas-0.2.1 test/dummy2/categories/index.html.erb
paginas-0.2.1 test/dummy2/app/views/paginas/pages/index.html.erb
paginas-0.2.1 app/views/paginas/pages/index.html.erb
paginas-0.2.0 app/views/paginas/pages/index.html.erb
paginas-0.2.0 test/dummy2/categories/index.html.erb
paginas-0.2.0 test/dummy2/app/views/paginas/pages/index.html.erb