I am working on a project and need some help on where to begin. I have three pages
- Update User
- Create User
- Admin User Password Change (like a Hard Reset Password for but only the admin can reset the user's password)
- Change Password
On Create User first name, last name, username, password, and password confirmation are mandatory.
On Update User just first name, last name and username are mandatory.
On Admin User Password Change and Change Password, just password and password confirmation are mandatory.
How would you go about doing this? I don't think this is possible through models using validates_presence_of with an if because there are too many scenarios. Any help or guidance would be appreciated. Also, I am pretty new to Rails if you can't already tell.