I have a user management form with password and password_confirmation
fields. I am requiring the fields on create, but they are optional on
update. If the user does not supply the password on update I want to
leave it alone.
Create works fine. Update works fine if the user supplies a password
and confirmation. If the user does not supply a password or
confirmation a new blank password is saved.
What is the best way to remove the password from the update statement
if it is blank?