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