"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 it:

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

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?