No commit activity in last 3 years
No release in over 3 years
StringexFriendlyId is a gem for using Stringex's ingenious unicode transliterations with FriendlyId's slugging magic.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.0.0
>= 0

Runtime

 Project Readme

Build Status

StringexFriendlyId

StringexFriendlyId combines Stringex with FriendlyId giving you access to FriendlyId's slugging magic combined with Stringex's ingenious transliterations.

With FriendlyId standalone, you normally get URLs like:

"it's nothing at all" => "it-s-nothing-at-all"
"rock & roll" => "rock-roll"
"$12 worth of Ruby power" => "12-worth-of-ruby-power"
"10% off if you act now" => "10-off-if-you-act-now"
"tell your readers 你好" => "tell-your-readers"

With StringexFriendlyId, you get URLs like these instead:

"it's nothing at all" => "its-nothing-at-all"
"rock & roll" => "rock-and-roll"
"$12 worth of Ruby power" => "12-dollars-worth-of-ruby-power"
"10% off if you act now" => "10-percent-off-if-you-act-now"
"tell your readers 你好" => "tell-your-readers-ni-hao"

Just by including this gem and using FriendlyId like you normally would.

Installation

In your Gemfile:

gem 'stringex_friendly_id'

Then run:

$ bundle install

You don't need to include FriendlyId or Stringex – they will be included by StringexFriendlyId.

Usage

Just use FriendlyId like you normally would. Stringex's transliteration magic was enabled when you included the gem in your Gemfile.

Contributing

  1. Fork the repo
  2. Create a feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a pull request

Copyright © 2013 Lasse Bunk, released under the MIT license