Show <%= singular_table_name %>

<%%= link_to <%= index_helper %>_path, class: 'list-group-item list-group-item-action' do %> <%%= icon('list') %> <%= singular_table_name.capitalize %> index <%% end %> <%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'list-group-item list-group-item-action' do %> <%%= icon('wrench') %> Edit <%% end %> <%%= link_to new_<%= singular_table_name %>_path, class: 'list-group-item list-group-item-action' do %> <%%= icon('plus') %> New <%= singular_table_name %> <%% end %>
Details
    <% attributes.each do |attribute| %>
  • <%= attribute.human_name %>: <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
  • <% end %>