friendship = Friendship.new
friendship.befriender = current_user
friendship.befriendee = @new_friend
friendship = Friendship.new
friendship.befriender = current_user
friendship.befriendee = @new_friend
Friendship.where(:befriender => current_user, :befriendee => @friend).delete_all
flash[:notice] = t "friendships.remove_friend.success", :name => @friend.display_name
else
flash[:error] = t "friendships.remove_friend.not_a_friend", :name => @friend.display_name
end
Friendship.where(:befriender => current_user, :befriendee => @friend).delete_all
flash[:notice] = t "friendships.remove_friend.success", :name => @friend.display_name
else
flash[:error] = t "friendships.remove_friend.not_a_friend", :name => @friend.display_name
end