%= simple_form_for( resource, url: resource.new_record? ? registration_path(resource_name) : user_path(resource), method: resource.new_record? ? :post : :put, wrapper: :horizontal_form, html: { class: 'form-horizontal', autocomplete: 'off' } ) do |f| %> <%= devise_error_messages! %> <%= f.input :name %> <%= f.input :first_name %> <%= f.input :last_name %> <%= f.input :email %> <%= f.input :password %> <%= f.input :password_confirmation %>