Sha256: 7ae6f31c90dae9118b99328598493da6f8a3bc4463fef4b6d1661fde592d0284
Contents?: true
Size: 998 Bytes
Versions: 2
Compression:
Stored size: 998 Bytes
Contents
<head> <title><%= class_name %> [index]</title> </head> <body> <h1>Listing <%= class_name.pluralize %></h1> <table> <tr> <%- @attributes.each do |att| -%> <th><%= att.name.camelize %></th> <%- end -%> <th></th> <th></th> <th></th> </tr> <c:forEach items="${<%=model_parameter_name%>List}" var="<%=model_parameter_name%>"> <tr> <%- @attributes.each do |att| -%> <td><%= "${#{model_parameter_name}.#{att.name}}" %></td> <%- end -%> <td><a href="<%= path "/${#{model_parameter_name}.id}" %>">show</a></td> <td><a href="<%= path "/${#{model_parameter_name}.id}/edit" %>">edit</a></td> <td> <form action="<%= path "/${#{model_parameter_name}.id}" %>" method="post"> <input type="hidden" name="_method" value="delete"/> <button type="submit" onclick="return confirm('Are you sure?')">destroy</button> </form> </td> </tr> </c:forEach> </table> <br /> <a href="<%= path '/new' %>">New <%= class_name %></a> </body>
Version data entries
2 entries across 2 versions & 1 rubygems