Truncate you urls as much as possible
Works with ruby >= 2.0
Installation
gem 'truncator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install truncator
Usage
It gives you one method to rule your URIs:
Truncator::UrlParser.shorten_url(uri, truncation_length)Contributing
- 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