show.html.erb 539 B

1234567891011121314151617
  1. <div class="page-header">
  2. <%%= link_to <%= index_helper %>_path, class: 'btn btn-default' do %>
  3. All <%= plural_table_name.capitalize %>
  4. <%% end %>
  5. <%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'btn btn-primary' do %>
  6. Edit
  7. <%% end %>
  8. <h1>Show <%= singular_table_name %></h1>
  9. </div>
  10. <dl class="dl-horizontal">
  11. <%- attributes.each do |attribute| -%>
  12. <dt><%= attribute.human_name %>:</dt>
  13. <dd><%%= @<%= singular_table_name %>.<%= attribute.name %> %></dd>
  14. <%- end -%>
  15. </dl>