As users are allowed to edit only their own profiles there's no need for generic route like '/users/:id/edit' and action for editing user by id. It'd better from security perspective as well to have smth like '/profile' path for editing current_user (if user is signed in).
As users are allowed to edit only their own profiles there's no need for generic route like '/users/:id/edit' and action for editing user by id. It'd better from security perspective as well to have smth like '/profile' path for editing current_user (if user is signed in).