Sha256: e6c8643c0302f90cd6d90d55a658a7dc6d9af08e9df8adc34fa1e9d348f58bf3
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
.well %h1 Listing <%= plural_table_name %> %table.table.table-bordered.table-striped %thead %tr <% for attribute in attributes -%> %th <%= attribute.human_name %> <% end -%> %th Actions %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 %>, :class => 'btn btn-mini' = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), :class => 'btn btn-mini' = link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn btn-mini btn-danger' = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn btn-primary'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-haml-rails-0.4.5 | lib/generators/haml/scaffold/templates/index.html.haml |