show.html.erb 647 B

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