"Edit my Profile" feature

How do I distinguish the "edit my profile" feature from the regular,
scaffold-generated "edit." I want to write something like this in
pseudocode, but I'm quite new to Ruby and not sure how to really write

def edit
@profile = User.find(@user.id == session[:id])

I want to find the user who's user i.d. is equal to the user who is
currently logged in. How do I do that exactly?