Sha256: 15121fc0dc6d073889d2e2550078b31e480892c2b1f6c5849cd71e2e26f9ae27
Contents?: true
Size: 842 Bytes
Versions: 19
Compression:
Stored size: 842 Bytes
Contents
<h1><%%= t('controller.<%= plural_table_name %>') %></h1> <table id="dataTable" class="table table-bordered table-striped dataTable"> <thead> <tr> <% attributes.each do |attribute| -%> <th><%%= t('attributes.<%= attribute.name %>') %></th> <% end -%> <th></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <%%= content_tag_for(:tr, <%= singular_table_name %>) do %> <% attributes.each do |attribute| -%> <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> <% end -%> <td class="nowrap"> <%%= show_link <%= singular_table_name %> %> <%%= edit_link <%= singular_table_name %> %> <%%= delete_link <%= singular_table_name %> %> </td> <%% end %> <%% end %> </tbody> </table> <br /> <%%= back_link %> <%%= new_link <%= class_name %> %>
Version data entries
19 entries across 19 versions & 2 rubygems