<%- for attribute in attributes -%>

<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>