Sha256: 7881ff37f5cfa57d032278073ce40b713936911002a1b7102f4462975ab2ced9

Contents?: true

Size: 602 Bytes

Versions: 93

Compression:

Stored size: 602 Bytes

Contents

%h1 Listing <%= plural_name %>

%table
  %tr
<% for attribute in attributes -%>
    %th <%= attribute.column.human_name %>
<% end -%>
  - @<%= plural_name %>.each do |<%= singular_name %>|
    %tr
    <% for attribute in attributes -%>
  %td= h <%= singular_name %>.<%= attribute.name %>
    <% end -%>    
      %td= link_to 'Show', object_url(<%= singular_name %>)
      %td= link_to 'Edit', edit_object_url(<%= singular_name %>)
      %td= link_to 'Destroy', object_url(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete

%br/

=link_to 'New <%= singular_name %>', new_object_url

Version data entries

93 entries across 93 versions & 25 rubygems

Version Path
spree-0.11.3 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
makandra_resource_controller-0.7.2 generators/scaffold_resource/templates/view_index.haml
rd_resource_controller-1.0.1 generators/scaffold_resource/templates/view_index.haml
rd_resource_controller-1.0.0 generators/scaffold_resource/templates/view_index.haml
spree-0.11.2 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
makandra_resource_controller-0.7.1 generators/scaffold_resource/templates/view_index.haml
makandra_resource_controller-0.7.0 generators/scaffold_resource/templates/view_index.haml
spree-0.11.1 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
rd_resource_controller-1.0.0.rc generators/scaffold_resource/templates/view_index.haml
spree-0.11.0 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
matid-resource_controller-0.7.2 generators/scaffold_resource/templates/view_index.haml
matid-resource_controller-0.7.1 generators/scaffold_resource/templates/view_index.haml
matid-resource_controller-0.7.0 generators/scaffold_resource/templates/view_index.haml
resource_controller_views-0.6.6.views2 generators/scaffold_resource/templates/view_index.haml
spree-0.10.2 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
matid-resource_controller-0.6.7 generators/scaffold_resource/templates/view_index.haml
resource_controller_views-0.6.6 generators/scaffold_resource/templates/view_index.haml
spree-0.10.1 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
spree-0.10.0 vendor/plugins/resource_controller/generators/scaffold_resource/templates/view_index.haml
objective_spec-0.3.1 generators/objective_resource/templates/view_index.haml