TheStringToSlug
Convert text string to slug param
Translite, downcase, parameterize
Install
gem "the_string_to_slug", "~> 0.0.5"
Using
"Привет Мир! Hello world!".to_slug_param
# => "privet-mir-hello-world"
String.to_slug_param("Привет Мир! Hello world!")
# => "privet-mir-hello-world"
Be carefully with file extension
"Документ.doc".to_slug_param
# => "dokument-doc"