%= form_for(current_user, as: :user, url: registration_path(:user), html: { method: :put }) do |f| %> <% if current_user.errors.any? %>