Bootstrap Tokenfield Gem for Rails


We are releasing the bootstrap_tokenfield_rails gem for extending input fields in your twitter bootstrap project.

This plugin tokenizes your input field, allowing the user to input and manage multiple values into the input field effortlessly.


Add this line to your application's Gemfile:

gem 'bootstrap_tokenfield_rails'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install bootstrap_tokenfield_rails

Add this line to your application.js file:

//= require bootstrap-tokenfield

Add this line to your application.css file:

*= require bootstrap-tokenfield


Given an input field, add a class of your choice to it.

<input type="text" class="tokenize">

Then tokenize the input field as follows.




  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request


Availaible under the MIT License.


Talk to us, that's always a good idea!