title: Customize "Password confirmation doesn't match Password" in Rails
body: <p>Is there a way to customize message in Rails for confirmation fields? For example in devise I have to enter password and password_confirmation and error message is:</p>
  
  <blockquote>
    <p>Password confirmation doesn't match Password</p>
  </blockquote>
  
  <p>I could change active record locale message ("doesn't match") but it outputs Password confirmation and Password at the begin and the end of that locale message so I get something like this:</p>
  
  <blockquote>
    <p>"Password confirmation must match Password"</p>
  </blockquote>
  
  <p>Is there a way to change it to different string?</p>
  
  <blockquote>
    <p>Password confirmation and Password must match.</p>
  </blockquote>
  
  <p><strong>EDIT</strong></p>
  
  <p>Another thing is to have completely custom message, for example:</p>
  
  <blockquote>
    <p>'Set password' and 'Confirm password' must match.</p>
  </blockquote>