diff --git a/app/models/user.rb b/app/models/user.rb index 8870b43d8..12322dca6 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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 diff --git a/app/views/users/_account.haml b/app/views/users/_account.haml index ef416df29..e6b1a7ff1 100644 --- a/app/views/users/_account.haml +++ b/app/views/users/_account.haml @@ -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"