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:
Here we are validate 3 attributes:
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.
update_profile in the line 5.
Now in the app you can edit the profile :)
To edit the password I create a new class with the validation. Will be able to see in the next block.