Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

David Thompson's Profile

GitHub User: davidynamic

Comments by David Thompson

Avatar

if you get the 'value is undefined' it might be because the property it should be searching for isn't set in the tokeninput settings

For instance, if the field that holds the names in your Authors model isn't called names, you need to specify it in the tokenInput option called "propertyToSearch" and change ti to propertyToSearch: "title" (or however you identify your authors)

You'll see it in the configuration settings here.

http://loopj.com/jquery-tokeninput/