Sha256: 36860db2db6a307cd3117da44449676d28d25e7957ac68205573728118dfd244
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
<h1>Listing <%= plural_name %></h1> <table> <tr> <% for attribute in attributes -%> <th><%= attribute.column.human_name %></th> <% end -%> </tr> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <tr> <% for attribute in attributes -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <% end -%> <td><%%= link_to 'Show', <%= object_path("#{singular_name}") %> %></td> <td><%%= link_to 'Edit', <%= edit_path("#{singular_name}") %> %></td> <td><%%= link_to 'Destroy', <%= object_path("#{singular_name}") %>, :confirm => 'Are you sure?', :method => :delete %></td> </tr> <%% end %> </table> <br /> <%%= link_to 'New <%= singular_name %>', <%= new_path %> %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
handy-generators-0.0.2 | rails_generators/hscaffold/templates/view_index.html.erb |
handy-generators-0.0.1 | rails_generators/hscaffold/templates/view_index.html.erb |