<%= error_messages_for 'user' %>
<%= text_field 'user', 'nick' %>
<%= text_field 'user', 'first_name' %>
<%= text_field 'user', 'last_name' %>
<%= text_field 'user', 'email' %>
<%= text_field 'user', 'phone' %>
<%= text_field 'user', 'address' %>
<%= password_field_tag "user", "password_entry" %>
<%= password_field_tag "user", "password_entry_confirmation" %>
<% for setting in User::setting_keys.keys -%> <% end -%>
Einstellungen:
<%= check_box_tag "user[settings][#{setting}]", '1', @user.settings[setting] == '1' || @user.settings_default(setting) %>