In Ruby on Rails 3.2, I am trying to validate password confirmation with this:
validates_confirmation_of :password
Rails will add the validation error to the :password field. How do I make the validation error be added to the :password_confirmation field instead?
Which version of Rails are you using? It should add the error to the
:password_confirmationattribute:Plot Twist: OP reveals it's Rails 3.2
I'd probably add (something like) this in my controller: