denispeplin/link_to_action

View on GitHub
lib/generators/link_to_action/templates/show.html.erb

Summary

Maintainability
Test Coverage
<p id="notice"><%%= notice %></p>

<% attributes.each do |attribute| -%>
<p>
  <strong><%= attribute.human_name %>:</strong>
  <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
</p>

<% end -%>

<%%= link_to_edit @<%= singular_table_name %> %> |
<%%= link_to_index <%= class_name %> %> |
<%%= link_to_back %>