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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---