lib/rid/generators/list/templates/index.mustache in rid-0.4.0 vs lib/rid/generators/list/templates/index.mustache in rid-0.4.1
- old
+ new
@@ -1,16 +1,19 @@
+<p><a href="{{path}}/_show/<%= model_name %>/">New <%= model_name.humanize %></a></p>
<table>
<tr>
+ <th>ID</th>
<% attributes.each do |attribute| -%>
<th><%= attribute.humanize %></th>
<% end -%>
<th></th>
</tr>
{{#rows}}
<tr>
+ <td>{{id}}</td>
<% attributes.each do |attribute| -%>
<td>{{<%= attribute %>}}</td>
<% end -%>
- <td><a href="../../_show/<%= model_name %>/{{id}}">Show <%= model_name.humanize %></a></td>
+ <td><a href="{{path}}/_show/<%= model_name %>/{{id}}">Show <%= model_name.humanize %></a></td>
</tr>
{{/rows}}
</table>