<% attributes.reject(&:password_digest?).each do |attribute| -%>
<%%= <%= singular_table_name %>.<%= attribute.name %> %> |
<% end -%>
<%%= link_to 'Show', <%= singular_table_name %>,
class: "btn btn-sm btn-block btn-default" %> |
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>),
class: "btn btn-sm btn-block btn-primary" %> |
<%%= link_to 'Destroy', <%= singular_table_name %>,
class: "btn btn-sm btn-block btn-danger",
method: :delete, data: { confirm: 'Are you sure?' } %> |
<%% end %>