%= form_for([:admin, @user], html: { class: 'form-horizontal' }) do |f| %> <%= devise_error_messages! %> <%= render partial: '/devise/registrations/common_registration_fields', locals: { f: f } %>