patriciomacadden/nice_generators

View on GitHub
lib/generators/nice/install/templates/erb/show.html.erb

Summary

Maintainability
Test Coverage
<h1><%%= title t('views.<%= plural_table_name %>.show') %></h1>

<% attributes.each do |attribute| -%>
<p>
  <b><%%=t 'activerecord.attributes.<%= singular_table_name %>.<%= attribute.name %>' %>:</b>
  <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
</p>
<% end -%>

<%%= link_to t('nice.edit'), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %> |
<%%= link_to t('nice.back'), <%= index_helper %>_path %>