corrected link on the account page

This commit is contained in:
ilya 2010-10-11 15:07:17 -07:00
parent bb7e2a9918
commit d6b08de6fc
2 changed files with 4 additions and 3 deletions

View file

@ -339,9 +339,9 @@ class User
def unfriend_everyone
friends.each{ |friend|
if friend.owner?
friend.owner.unfriended_by (self.person )
friend.owner.unfriended_by self.person
else
self.unfriend( friend )
self.unfriend friend
end
}
end

View file

@ -28,6 +28,7 @@
= link_to "download my photos", users_export_photos_path, :class => "button"
%h3 Close Account
= link_to "Close Account", current_user,
:confirm => "Are you sure?", :method => :delete,
:class => "button`"
:class => "button"