$(document).on('turbolinks:load', function() { $('.select2').select2({ tags: true, tokenSeparators: [','], allowClear: true, placeholder: '' }); });