lib/rid/generators/show/templates/show.mustache in rid-0.4.0 vs lib/rid/generators/show/templates/show.mustache in rid-0.4.1
- old
+ new
@@ -1,6 +1,8 @@
-<p><a href="../../_list/<%= pluralized_model_name %>/<%= pluralized_model_name %>">List <%= pluralized_model_name.humanize %></a></p>
+<p><a href="{{path}}/_list/<%= pluralized_model_name %>/<%= pluralized_model_name %>">List <%= pluralized_model_name.humanize %></a></p>
<dl>
+ <dt>ID</dt>
+ <dd>{{id}}</dd>
<% attributes.each do |attribute| -%>
<dt><%= attribute.humanize %></dt>
<dd>{{<%= attribute %>}}</dd>
<% end -%>
</dl>