A post-request is executed in the users_controller controller to change the data in the object with the user model, parameters are passed to the post from edit.html.erb. How to remove from params parameter :password
and :password_confirmation
, if the fields on the form are empty?
<div class="field"> <%= f.label :password %> <br/> <%= f.password_field :password %> </div> <div class="field"> <%= f.label :password_confirmation %> <br/> <%= f.password_field :password_confirmation %> </div>