<%= f.label :name %> <%= f.text_field :name %>
<%= attr["key"] %> <%= hidden_field_tag "user_attribute[attrs][][key]", attr["key"] %> <%= text_field_tag "user_attribute[attrs][][name]", attr["name"] %> <%= select_tag "user_attribute[attrs][][type]", options_for_select(["text_field"], attr["type"]) %> (remove)
Key <%= text_field_tag "user_attribute[attrs][][key]", "" %> Name <%= text_field_tag "user_attribute[attrs][][name]", "" %> <%= select_tag "user_attribute[attrs][][type]", options_for_select(["text_field"], "") %> (remove)