Sha256: ee99685619360eefd4939631e52476f47273298d5010d98de48fa185310757b3
Contents?: true
Size: 962 Bytes
Versions: 13
Compression:
Stored size: 962 Bytes
Contents
<h1>Listing <%= @name_plural.humanize.titlecase %></h1> <table> <tr> <% unless showable_columns.empty? showable_columns.each do |col| -%> <th><%= col.column_name.humanize %></th> <% end else -%> <th> </th> <% end -%> </tr> <%% for <%= @name_singular %> in @<%= @name_plural %> %> <tr> <% unless showable_columns.empty? showable_columns.each do |col| -%> <td><%%= <%= @name_singular %>.<%= col.column_name %> %></td> <% end else -%> <td> </td> <% end -%> <td><%%= link_to("Show", <%= @name_plural %>_show_url(:id => <%= @name_singular %>)) %></td> <td><%%= link_to("Edit", <%= @name_plural %>_edit_url(:id => <%= @name_singular %>)) %></td> <td><%%= link_to("Delete", <%= @name_plural %>_delete_url(:id => <%= @name_singular %>), :method => :delete, :confirm => "Are you sure?") %></td> </tr> <%% end %> </table> <br /> <%%= link_to("New <%= @name_singular_camel %>", <%= @name_plural %>_new_url) %>
Version data entries
13 entries across 13 versions & 1 rubygems