Sha256: b7de51ca5f49b9e9c845742d631dd624ac2f80f7313da2fda023874d6b9124da

Contents?: true

Size: 706 Bytes

Versions: 8

Compression:

Stored size: 706 Bytes

Contents

<h1>Contents</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Title</th>
      <th>Section</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @contents.each do |content| %>
      <tr>
        <td><%= link_to content.title, content_path(content) %></td>
        <td><%= content.section.name %></td>
        <td>
          <%= link_to 'Edit', edit_content_path(content), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', content_path(content), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'New', new_content_path, :class => 'btn btn-primary' %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
how_to-0.0.8 app/views/how_to/contents/index.html.erb
how_to-0.0.7 app/views/how_to/contents/index.html.erb
how_to-0.0.6 app/views/how_to/contents/index.html.erb
how_to-0.0.5 app/views/how_to/contents/index.html.erb
how_to-0.0.4 app/views/how_to/contents/index.html.erb
how_to-0.0.3 app/views/how_to/contents/index.html.erb
how_to-0.0.2 app/views/how_to/contents/index.html.erb
how_to-0.0.1 app/views/how_to/contents/index.html.erb