Closed erlingur closed 7 years ago
Sweet! 👍
I'm not sure if this would work in this case, but Rails built-in parameterize takes care of these and other edge cases:
>> "àáâãäåéèêëęėēýÿúûüùūíîïìįīóöôòõøōðæþ".parameterize
=> "aaaaaaeeeeeeeyyuuuuuiiiiiiooooooodaeth"
Added some basic diacritic support to the slug generator so it works a bit better with foreign languages (Icelandic in my case).