У меня есть форма «добавить новую вещь», которая связывает «пользователя» с «вещью».
Я использую Twitter Bootstrap Typeahead, чтобы выводить список пользователей по мере ввода.
Он отлично работает, если пользователь есть в списке, я могу его выбрать.
Но если пользователь не существует, я бы хотел, чтобы появилась ссылка «Создать нового пользователя».
В общем, мне нужна какая-то функция «нет совпадений» где-то в .typeahead()
. Я не могу это решить.