Sha256: 8e9a7a6ba2752a17efe3eadcbc68ce61096a2906fb323519cb3e286a8561694a

Contents?: true

Size: 655 Bytes

Versions: 33

Compression:

Stored size: 655 Bytes

Contents

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

<h1>Listing Posts</h1>

<table>
  <thead>
    <tr>
      <th>Content</th>
      <th>Author</th>
      <th colspan="3">Actions</th>
    </tr>
  </thead>

  <tbody>

    <% @posts.each do |post| %>
      <tr>
        <td><%= post.content %></td>
        <td><%= post.author.first_name %> <%= post.author.last_name %></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

33 entries across 33 versions & 1 rubygems

Version Path
g5_authenticatable-0.8.0 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.8.0.beta1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.5 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.5.beta spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.4 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.4.beta.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.3 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.7.0 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.6.0 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.5.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.5.0 spec/dummy/app/views/posts/index.html.erb