to implement rails autocomplete