-
-
Save mfrederickson/d78f2c46a7a698888bed8ee51f364198 to your computer and use it in GitHub Desktop.
acts_as_taggable_on + simple_form + select2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in application.coffee | |
#= require select2 | |
# in application.scss | |
*= require select2 | |
*= require select2-bootstrap | |
# in controller | |
permit(tag_list: []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= f.input :tag_list, as: :tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'acts-as-taggable-on' | |
gem 'simple_form' | |
gem 'select2-rails' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment