Sha256: 1246064e8b57856172eddcafae802402452b57172859fef51f31f733815ae0d5

Contents?: true

Size: 712 Bytes

Versions: 16

Compression:

Stored size: 712 Bytes

Contents

<h1>Sections</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Name</th>
      <th>Content count</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @sections.each do |section| %>
      <tr>
        <td><%= link_to section.name, section_path(section) %></td>
        <td><%= section.contents_count %></td>
        <td>
          <%= link_to 'Edit', edit_section_path(section), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', section_path(section), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
how_to-2.0.5 app/views/how_to/sections/index.html.erb
how_to-2.0.4 app/views/how_to/sections/index.html.erb
how_to-2.0.3 app/views/how_to/sections/index.html.erb
how_to-2.0.2 app/views/how_to/sections/index.html.erb
how_to-2.0.1 app/views/how_to/sections/index.html.erb
how_to-2.0.0 app/views/how_to/sections/index.html.erb
how_to-1.0.3 app/views/how_to/sections/index.html.erb
how_to-1.0.2 app/views/how_to/sections/index.html.erb
how_to-0.0.8 app/views/how_to/sections/index.html.erb
how_to-0.0.7 app/views/how_to/sections/index.html.erb
how_to-0.0.6 app/views/how_to/sections/index.html.erb
how_to-0.0.5 app/views/how_to/sections/index.html.erb
how_to-0.0.4 app/views/how_to/sections/index.html.erb
how_to-0.0.3 app/views/how_to/sections/index.html.erb
how_to-0.0.2 app/views/how_to/sections/index.html.erb
how_to-0.0.1 app/views/how_to/sections/index.html.erb