To edit, I need to use scrivener again, we need to validate that the new user log data are correct.
Scrivener helps to validate parameters that you want to assign. Is the same like in the Sign Up and Sign In.

I create a file with the name: update_profile.rb

Here we are validate 3 attributes:
- name
- email
- current_email

I wrote in the form: edit_profile and I verify the name and the email. This is the same validation like the form Sign Up and Sign In. Line 3 to 18.

Define the route.
I define update_profile in the line 5.

Now in the app you can edit the profile :)

update_profile_1

update_profile_2

update_profile_3

To edit the password I create a new class with the validation. Will be able to see in the next block.