activeadmin_addons icon indicating copy to clipboard operation
activeadmin_addons copied to clipboard

Uncaught TypeError: Cannot read property 'toUpperCase' of undefined

Open Charly3X opened this issue 11 years ago • 1 comments

Uncaught TypeError: Cannot read property 'toUpperCase' of undefined - after ajax search

Charly3X avatar Sep 03 '15 07:09 Charly3X

Hey @Charly3X , that's probably because the fieldname your trying to display on the select is not name, this addon defaults to the field name, but you can set your own. I've updated the docs to better note this. https://github.com/platanus/activeadmin_addons/commit/7a5cd9a78cb3a4a8ee25ae1fb06699c822ac954d#diff-4206755b98c333baa874be4a449be3acR8

emilioeduardob avatar Sep 04 '15 19:09 emilioeduardob