Autocomplete with Angular, Rails and Tries