Updated friendship controller

still getting error when I link to edit page