Sha256: 57bf057032fe2f102266673bd453beef42cdf3754a6f4ec72035253309b7b680

Contents?: true

Size: 712 Bytes

Versions: 8

Compression:

Stored size: 712 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.try(: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-2.0.5 app/views/how_to/contents/index.html.erb
how_to-2.0.4 app/views/how_to/contents/index.html.erb
how_to-2.0.3 app/views/how_to/contents/index.html.erb
how_to-2.0.2 app/views/how_to/contents/index.html.erb
how_to-2.0.1 app/views/how_to/contents/index.html.erb
how_to-2.0.0 app/views/how_to/contents/index.html.erb
how_to-1.0.3 app/views/how_to/contents/index.html.erb
how_to-1.0.2 app/views/how_to/contents/index.html.erb