README.md in select2-rails-4.0.0 vs README.md in select2-rails-4.0.1
- old
+ new
@@ -28,9 +28,15 @@
If you are using Twitter Boostrap you need to also require the bootstrap theme CSS in addition to the above require.
*= require select2-bootstrap
+To apply the theme, tell Select2 to do so by passing `bootstrap` to the [`theme`](https://select2.github.io/examples.html#themes) option when initializing Select2:
+
+ $( "#dropdown" ).select2({
+ theme: "bootstrap"
+ });
+
## Internationalization (i18n)
The `select2-rails` now supports multiple languages.
Add the following to your `app/assets/javascripts/application.js`: