Sha256: e6374b78ee3f3dcbacf992f2a54574108b848a3a0f723c814386b59bb7c160ab

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 Bytes

Contents

<h1>Listing posts</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Description</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @posts.each do |post| %>
      <tr>
        <td><%= post.title %></td>
        <td><%= post.description %></td>
        <td><%= link_to 'Show', post %></td>
        <td><%= link_to 'Edit', edit_post_path(post) %></td>
        <td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Post', new_post_path %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
themes_on_rails-0.4.0 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.3.1 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.3.0 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.2.2 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.2.1 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.2.0 spec/dummy/app/views/posts/index.html.erb
themes_on_rails-0.1.0 spec/dummy/app/views/posts/index.html.erb