<%= password_input f, :password, value: input_value(f, :password) %> <%= password_input f, :password_confirmation, value: input_value(f, :password_confirmation) %> <%= error_tag f, :password %> <%= error_tag f, :password_confirmation %>