Tab bar right buttons

Trying to figure out how to use the rightButtons attribute of ion-tab. I’ve got:
<ion-tab title=“Places” icon=“icon ion-heart” href="#/tab/places" right-buttons=“search”>

and in the $scope I have

$scope.search = [{type:‘ion-ios7-location’, content:‘search’, tap:function(){
console.log(arguments);
}}];

Am I doing it wrong? Maybe I’m in the wrong scope… I’ve got this defined in the tab’s abstract route controller.