Sha256: 125b2cf4bcc32ef6830432ed934b2892482997fcf12404d1bd3158f09e404402
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
.page-header = link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do %i.icon-plus.icon-white New <%= human_name %> %h1 Listing <%= plural_table_name %> %table.table.table-bordered.table-striped %thead %tr <% for attribute in attributes -%> %th <%= attribute.human_name %> <% end -%> %th %th %th %tbody - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <% for attribute in attributes -%> %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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-generators-2.3.2 | lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml |