Sha256: 328c6a9ecfe362c84a6c0c9377592d9f7077e4c0ffe4ed45f1e131923cf137f1
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 Bytes
Contents
h1 Listing <%= plural_table_name %> table thead tr <% attributes.each do |attribute| -%> th <%= attribute.human_name %> <% end -%> th th th 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 br = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
Version data entries
5 entries across 5 versions & 1 rubygems