Sha256: fc8a67702cd07d5c1dee61097a168f3d3a7179fc10fa319cb9af5ecbaf72512d
Contents?: true
Size: 989 Bytes
Versions: 3
Compression:
Stored size: 989 Bytes
Contents
<body> <h1>Listing <%= class_name.pluralize %></h1> <table> <tr> <% @attributes.each do |att| -%> <th><%= att.name %></th> <% end -%> <th></th> <th></th> <th></th> </tr> <#list <%= "#{@model}List as #@model" %>> <tr> <% @attributes.each do |att| -%> <td> <%= "${#{@model}.#{att.name}!\"\"}" unless att.boolean? %> <%= "${#{@model}.#{att.name}?string}" if att.boolean? %> </td> <% end -%> <td><a href="<%= "#{path}/${#{@model}.id}/show" %>">show</a></td> <td><a href="<%= "#{path}/${#{@model}.id}/edit" %>">edit</a></td> <td> <form action="<%= path %>" method="post"> <input name="<%= "#{@model}.id" %>" value="<%= "${#{@model}.id}" %>" type="hidden" /> <input type="hidden" name="_method" value="delete"/> <button type="submit" onclick="return confirm('Are you sure?')">destroy</button> </form> </td> </tr> </#list> </table> <br /> <a href="<%= path %>/new">New <%= class_name %></a> </body>
Version data entries
3 entries across 3 versions & 1 rubygems