Sha256: ed3cb3d1bc88767d3785f3aa0382eafe868e7b662339a5efdfb5ef8979a1d291
Contents?: true
Size: 982 Bytes
Versions: 4
Compression:
Stored size: 982 Bytes
Contents
%h1 <%= plural_table_name.capitalize %> %table.scaffold.common-table.zebra-stripped.sortable %thead %tr <% for attribute in attributes -%> %th <%= attribute.human_name %> <% end -%> %th.button_column %th.button_column %th.button_column %tbody - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <% for attribute in attributes -%> %td= <%= singular_table_name %>.<%= attribute.name %> <% end -%> %td.button_column= link_to 'Show', <%= singular_table_name %>, :class => 'btn info float_left' %td.button_column= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), :class => 'btn primary float_left' %td.button_column= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn danger float_left' %br .actions = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary '
Version data entries
4 entries across 4 versions & 1 rubygems