Sha256: 98566282c0e3313e17a1a1ecc92c949fe031ba7b49a9ad4c33c15f06c0d313a6

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

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

<h1>Posts</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Content</th>
      <th>Active</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @posts.each do |post| %>
      <tr>
        <td><%= post.title %></td>
        <td><%= post.content %></td>
        <td><%= post.active %></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

5 entries across 5 versions & 1 rubygems

Version Path
simple_form_custom_inputs-0.1.0 example/app/views/posts/index.html.erb
simple_form_custom_inputs-0.0.4 example/app/views/posts/index.html.erb
simple_form_custom_inputs-0.0.3 example/app/views/posts/index.html.erb
simple_form_custom_inputs-0.0.2 example/app/views/posts/index.html.erb
simple_form_custom_inputs-0.0.1 example/app/views/posts/index.html.erb