#Select2 4.0.0-beta.3 for rails asset pipeline
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
Add select2-rails
to your Gemfile and run bundle install
:
gem "select2-rails", github: 'CUnknown/select2-rails'
Add the following to your app/assets/javascripts/application.js
:
//= require select2
Add to your app/assets/stylesheets/application.css
:
*= require select2
The select2-rails
now supports multiple languages.
Add the following to your app/assets/javascripts/application.js
:
//= require select2/"language"
Selec2-Rails is released under the MIT License.