ざっくりん雑記

プログラミングで忘れそうなことをひたすらメモる

Rails - DeviseのPassword confirmationを無効にする

無効にするには

DeviseのWikiに記述がありました。

Easiest solution is: you can simply remove the password_confirmation field from the registration form located at devise/registrations/new.html.erb (new.html.haml if you are using HAML), which disables the need to confirm the password entirely!

Disable password confirmation during registration · plataformatec/devise Wiki

「単純にパスワードを確認する必要のないViewのフォームからpassword_confirmationフィールドを削除するだけです。」ということみたいです。

参考