Sha256: da16b29b20b5edbd359c43b249e0dda39c727abb3823cb429aee539be68495e1

Contents?: true

Size: 588 Bytes

Versions: 9

Compression:

Stored size: 588 Bytes

Contents

%h2 Listing <%= plural_name.humanize %>

%table
  %tr
<% for attribute in attributes -%>
    %th <%= attribute.column.human_name %>
<% end -%>

  - for <%= singular_name %> in @<%= plural_name %>
    %tr
<% for attribute in attributes -%>
      %td= h <%= singular_name %>.<%= attribute.name %>
<% end %>
      %td= link_to 'Show', <%= singular_name %>
      %td= link_to 'Edit', [:edit, <%= singular_name %>]
      %td= link_to 'Destroy', <%= singular_name %>, :method => :delete, :confirm => 'Are you sure?'

= link_to 'New <%= singular_name.humanize %>', new_<%= singular_name %>_path

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
hashrocket-hashrocket-terraformation-0.0.0 rails_generators/terrascaffold/templates/view_index.html.haml.erb
hashrocket-terraformation-0.0.0 rails_generators/terrascaffold/templates/view_index.html.haml.erb
hashrocket-terraformation-0.1.0 rails_generators/terrascaffold/templates/view_index.html.haml.erb
hashrocket-terraformation-0.1.2 rails_generators/terrascaffold/templates/view_index.html.haml.erb
terraformation-0.2.2 rails_generators/terrascaffold/templates/view_index.html.haml.erb
terraformation-0.2.1 rails_generators/terrascaffold/templates/view_index.html.haml.erb
terraformation-0.2.0 rails_generators/terrascaffold/templates/view_index.html.haml.erb
terraformation-0.1.3 rails_generators/terrascaffold/templates/view_index.html.haml.erb
terraformation-0.1.2 rails_generators/terrascaffold/templates/view_index.html.haml.erb