<%- attributes.each do |attribute| -%> <%- id_or_not = "" -%> <%- if @beautiful_attributes.include?(attribute.name + ':references') then -%> <%- id_or_not = "_id" -%> <%- end -%> <%%= sorting_header("<%= singular_table_name %>", "<%= attribute.name %><%= id_or_not %>", "<%= namespace_alone %>") %> <%- end -%>