select2-rails + act_as_taggable_on rails 4 issue
I installed select2-rails and act_as_taggable_on gem to my app. I setup the act_as_taggable_on and it works (I tested from the console). However, when I tried to create the view so that user can add new tag, it's not working. I want to make a tagging support like this: https://select2.github.io/examples.html#tokenizer . Here is my setup: apps/assets/application.js $(document).ready(function(){ $(".multiple-input").select2({ theme: "bootstrap"; tags: true; tokenSeparators: [','] }) }); apps/views/profiles/new.html.erb <%= form_for @profile, url: user_profile_path do |f| %> <%= f.text_field