<%- @model.attributes.each do |attr| -%>
<%- if !attr.references? -%>
<%%= @<%= @model.singular_name %>.<%= attr.name %> %>
<%- elsif attr.belongs_to? || attr.nested_one? -%>
<%%= @<%= @model.singular_name %>.<%= attr.type.singular_name %>.<%= attr.reference %> %>
<%- elsif attr.has_many? or attr.nested_many? -%>
<%% @<%= @model.singular_name %>.<%= attr.type.plural_name %>.each do |<%= attr.type.singular_name %>| %>
- <%%= <%= attr.type.singular_name %>.<%= attr.reference %> %>
<%% end %>
<%- end -%>
<%- end -%>