I would like to have a select2 dropdown of tags, where i could select multiple existing tags and add new ones.
I have tried many different ways and i either don\'t g
Try this one, hope this will work for you.
= f.input :tag_list, class: "taggable",data: {options: @model.tags.map { |t| t.name }} $(".taggable").select2( tags: $('.taggable').data('options') width: "252px" );