Sha256: 85d1e98d4835e0e4fd9abec8f96f05aff62c12f0af8c356b815ce3a17be24f49

Contents?: true

Size: 1.16 KB

Versions: 25

Compression:

Stored size: 1.16 KB

Contents

<h1><%= resource_name.titleize %>s</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>ID</th>
      <%- unless columns.empty? -%>
      <th><%= columns.first.name.humanize %></th>
      <%- end -%>
      <th>Created at</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <%% @<%= plural_resource_name %>.each do |<%= resource_name %>| %>
      <tr>
        <td><%%= <%= resource_name %>.id %></td>
        <%- unless columns.empty? -%>
        <td><%%= link_to <%= resource_name %>.<%= columns.first.name %>, <%= singular_controller_routing_path %>_path(<%= resource_name %>) %></td>
        <%- end -%>
        <td><%%= <%= resource_name %>.created_at %></td>
        <td>
          <%%= link_to 'Edit', edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-mini' %>
          <%%= link_to 'Destroy', <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <%% end %>
  </tbody>
</table>

<%%= link_to 'New', new_<%= singular_controller_routing_path %>_path, :class => 'btn btn-primary' %>

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
bootstrapped-rails-2.0.9.rc2 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.9.rc1 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8.5 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8.4 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8.3 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8.2 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8.1 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.8 lib/generators/bootstrapped/themed/templates/index.html.erb
twitter-bootstrap-rails-2.0.5 lib/generators/bootstrap/themed/templates/index.html.erb
twitter-bootstrap-rails-2.0.4 lib/generators/bootstrap/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.9 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.8 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.7 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.6 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.5 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.4 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.3 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.2 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7.1 lib/generators/bootstrapped/themed/templates/index.html.erb
bootstrapped-rails-2.0.7 lib/generators/bootstrapped/themed/templates/index.html.erb