Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

starmandell's Profile

GitHub User: starmandell

Comments by

Avatar

hello, i was wondering if it was possible to have the drop down display something different from what the user selects? ie in stack overflow, if you type in java, it might display something like 'java x 34' because its count is 34. but when you select it, it just becomes 'java'. is it possible to do it with the jquery token input? ive been reading the documentation and it seems like it only has the :id and :name attribute. i tried doing something like...

tags.map{ |tag| { id: "#{tag.id}", name: "#{tag.name} x #{tag.count}", value: "#{tag.name}" } }

but no success. any ideas?
thanks = )