UnderscoreString::Rails
Include underscore.string.js in the Rails asset pipeline
Installation
Add this line to your application's Gemfile:
gem 'underscore_string-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install underscore_string-rails
Then require the js in your application.js:
//= require underscore
//= require underscore.string
Usage
underscore.string object is available under the namespace:
_.str
Refer to epeli/underscore.string to learn how to use underscore.string.