<% attributes.reject(&:password_digest?).each do |attribute| -%>

<%= attribute.human_name %>: <% if attribute.attachment? -%> {#if <%= singular_table_name %>.<%= attribute.column_name %>} .<%= attribute.column_name %>.url}> {<%= singular_table_name %>.<%= attribute.column_name %>.filename} {/if}

<% elsif attribute.attachments? -%>

{#each <%= singular_table_name %>.<%= attribute.column_name %> as { url, filename }}
{filename}
{/each} <% else -%> {<%= singular_table_name %>.<%= attribute.column_name %>}

<% end -%> <% end -%>