Sha256: 8b696386034aa3292abb002426b24b13aedde54d95a32d21e94c435374af1e24

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

<h1>Listing posts</h1>

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

<% @posts.each do |post| %>
  <tr>
    <td><%=h post.title %></td>
    <td><%=h post.body %></td>
    <td><%=h post.user_id %></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

3 entries across 3 versions & 1 rubygems

Version Path
transactionata-0.3.0 test/rails2/app/views/posts/index.html.erb
transactionata-0.2.0 test/rails2/app/views/posts/index.html.erb
transactionata-0.1.0 test/rails2/app/views/posts/index.html.erb