Sha256: 2356203df985aea3727e40d8aa3aed752a80bd7bd3cd9443f9c128715fae8c6d

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

<h1>Listing posts</h1>

<table>
  <tr>
    <th>User</th>
    <th>Title</th>
    <th>Body</th>
  </tr>

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

<br />

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fizx-collapsed_routes-1.0.2 spec/app/app/views/posts/index.html.erb
fizx-collapsed_routes-1.1.0 spec/app/app/views/posts/index.html.erb
fizx-collapsed_routes-1.2.0 spec/app/app/views/posts/index.html.erb
fizx-collapsed_routes-1.3.0 spec/app/app/views/posts/index.html.erb