<%= @form.error_messages %>
<%= @form.label :nick, "Benutzername" %> <%= @form.text_field :nick %>
<%= @form.label :first_name, "Vorname" %> <%= @form.text_field :first_name %>
<%= @form.label :last_name, "Nachname" %> <%= @form.text_field :last_name %>
<%= @form.label :email, "E-Mail" %> <%= @form.text_field :email %>
<%= @form.label :phone, "Telefon" %> <%= @form.text_field :phone %>
<%= @form.label :password, "Passwort" %> <%= @form.password_field :password %>
<%= @form.label :password_confirmation, "Passwort-Wiederholung" %> <%= @form.password_field :password_confirmation %>
<% for setting in User::setting_keys.keys -%> <% end -%>
Einstellungen:
<%= check_box_tag "user[setting_attributes][#{setting}]", '1', @user.settings[setting] == '1' || @user.settings_default(setting) %>