Devise -- password doesn't match its confirmation for some reason <p>I'm using <code>devise</code> and I can't add an user neither via no via <code>seeds.rb</code>. Here is a rails console:</p> <pre><code>irb(main):100:0&gt; a = User.new =&gt; #&lt;User id: nil, email: "", encrypted_password: "", reset_password_token: nil, reset_password_sent_at: nil,......etc&gt; irb(main):111:0&gt; a.email = "email1@gmail.com" =&gt; "email1@gmail.com" irb(main):116:0&gt; a.password = "1234a" =&gt; "1234a" irb(main):117:0&gt; a.password =&gt; "1234a" irb(main):119:0&gt; a.password_confirmation = "1234a" =&gt; "1234a" irb(main):120:0&gt; a.password_confirmation == a.password =&gt; true irb(main):121:0&gt; a.save! (0.8ms) BEGIN User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'M9Xg7pYuPkgysuirxoj8' LIMIT 1 User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '4y8Vdn9b7nsC2QqtkCSs' LIMIT 1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'email1@gmail.com' LIMIT 1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE LOWER("users"."login") = LOWER('login1') LIMIT 1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'email1@gmail.com' LIMIT 1 (0.4ms) ROLLBACK ActiveRecord::RecordInvalid: Validation failed: Password doesn't match confirmation </code></pre>