act-as-taggable-on

select2-rails + act_as_taggable_on rails 4 issue

痴心易碎 提交于 2019-12-31 07:08:10
问题 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

select2-rails + act_as_taggable_on rails 4 issue

此生再无相见时 提交于 2019-12-02 09:33:02
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