Sha256: 7bfe333d96bc6fa2ac38a15c62989b218d32a4e4a292d92dac58dcb62b0dd74d
Contents?: true
Size: 1.11 KB
Versions: 11
Compression:
Stored size: 1.11 KB
Contents
- model_class = <%= model_class %> %h1= model_class.model_name.human.pluralize %table.striped %thead.thead-black %tr %th= model_class.human_attribute_name(:id) <%- columns.each do |column| -%> %th= model_class.human_attribute_name(:<%= column.name %>) <%- end -%> %th= model_class.human_attribute_name(:created_at) %th Actions %tbody - @<%= plural_resource_name %>.each do |<%= resource_name %>| %tr %td= link_to <%= resource_name %>.id, <%= singular_controller_routing_path %>_path(<%= resource_name %>) <%- columns.each do |column| -%> %td= <%= resource_name %>.<%= column.name %> <%- end -%> %td=l <%= resource_name %>.created_at %td = link_to 'Edit', edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-small' = link_to 'Destroy', <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :data => { :confirm => 'Are you sure?' }, :class => 'btn btn-small' = link_to 'New', new_<%= singular_controller_routing_path %>_path, :class => 'btn'
Version data entries
11 entries across 11 versions & 1 rubygems