I try to do that. Unfortunately I have problems with overriding update and I don't know how to do that correctly. The way I do that in another place is:
if params[:user][:password].blank?
params[:user].delete("password")
params[:user].delete("password_confirmation")
end
# ...
user.save!
So I tried to override update
def update
if params[:user][:password].blank?
params[:user].delete("password")
params[:user].delete("password_confirmation")
end
super
end
But it doesn't works. I still get can't be blank
near to the password input. How to achieve expected behaviour?