Sha256: 10486fcc88a0aa660eccfbe6fcc2c251e246fb4e7a56377e283f22508bc7a6e5
Contents?: true
Size: 923 Bytes
Versions: 12
Compression:
Stored size: 923 Bytes
Contents
<h1>Listing <%= @name_plural_camel %></h1> <table> <tr> <% unless columns.empty? columns.each do |col| -%> <th><%= col.column_name.camelcase %></th> <% end else -%> <th> </th> <% end -%> </tr> <%% for <%= @name_singular %> in @<%= @name_plural %> %> <tr> <% unless columns.empty? 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 %>.id)) %></td> <td><%%= link_to("Edit", <%= @name_plural %>_edit_url(:id => <%= @name_singular %>.id)) %></td> <td><%%= link_to("Delete", <%= @name_plural %>_delete_url(:id => <%= @name_singular %>.id), :method => :delete, :confirm => "Are you sure?") %></td> </tr> <%% end %> </table> <br /> <%%= link_to("New <%= @name_singular_camel %>", <%= @name_plural %>_new_url) %>
Version data entries
12 entries across 12 versions & 3 rubygems