|
<% @user_attributes.each do |ua| %>
|
|
<h3><%= ua.name %></h3>
|
|
|
|
<% ua.attrs.each do |attr| %>
|
|
<p>
|
|
<%= f.label attr["name"] %>
|
|
<%= f.send(attr["type"], "#{ua.key}_#{attr["key"]}" )%>
|
|
</p>
|
|
<% end -%>
|
|
<% end -%>
|
|
|
|
<p>
|
|
<%= f.label :email %>
|
|
<%= f.text_field :email %>
|
|
</p> |