Sha256: ccf46d753db80a027c12daf68537f67ea7501d8ce5be488b20e7e68f3bc82c05
Contents?: true
Size: 920 Bytes
Versions: 17
Compression:
Stored size: 920 Bytes
Contents
%h1= title('<%%= plural_table_name.titleize %>') %table.table.table-striped.table-hover.table-sm %thead %tr <%% attributes.reject(&:password_digest?).each do |attribute| -%> %th{scope: "col"} <%%= attribute.human_name %> <%% end -%> %th{colspan: "3", scope: "col"} %tbody - @<%%= plural_table_name %>.each do |<%%= singular_table_name %>| %tr <%% attributes.each do |attribute| -%> %td= <%%= singular_table_name %>.<%%= attribute.name %> <%% end -%> %td= link_to 'Show', <%%= singular_table_name %> %td= link_to 'Edit', edit_<%%= singular_table_name %>_path(<%%= singular_table_name %>) %td= link_to 'Destroy', <%%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete <% if options[:pagination] -%> = render 'shared/pagination' <% end -%> %br = link_to 'New <%%= singular_table_name.titleize %>', new_<%%= singular_route_name %>_path
Version data entries
17 entries across 17 versions & 1 rubygems