Sha256: 8f04b24cbef2945ceaa559817ab6811d9578d7f9ffc8697d23eb71fe539431cd

Contents?: true

Size: 869 Bytes

Versions: 7

Compression:

Stored size: 869 Bytes

Contents

<h1>Listing <%= plural_name %></h1>

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


  <tbody>
    <%% @<%= plural_name %>.each do |<%= singular_name %>| %>
    <tr>
      <% for attribute in attributes -%>
        <th><%= attribute.human_name.titleize %></th>
        <td><%%= <%= file_name %>.<%= attribute.name %> %></td>
      <% end -%>
      <td><%%= link_to 'Show', <%= singular_name %> %></td>
      <td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td>
      <td><%%= link_to 'Delete', <%= singular_name %>_path(<%= singular_name %>, :mode => "draft") %></td>
    </tr>
    <%% end %>
  </tbody>
</table>

<%%= link_to 'New <%= human_name %>', new_<%= singular_name %>_path %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
railstar-0.0.12 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.11 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.10 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.9 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.8 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.7 lib/generators/railstar/scaffold/templates/views/index.html.erb
railstar-0.0.6 lib/generators/railstar/scaffold/templates/views/index.html.erb