<% for attribute in attributes -%>

<%= attribute.human_name %>: <%%= @<%= singular_name %>.<%= attribute.name %> %>

<% end -%> <%%= link_to 'Edit', edit_<%= scope_prefix + singular_name %>_path(<%= instance_variable_scope('@' + singular_name) %>) %> <%- unless options[:singleton] -%> <%%= link_to 'Back', <%= scope_prefix + plural_name %>_path(<%= instance_variable_scope %>) %> <%- end -%>