How should I convert a post title to a slug in Ruby?
The title can have any characters, but I only want the slug to allow [a-z0-9-_] (Should it allow an
[a-z0-9-_]
I've used this gem.It's simple but helpful.
https://rubygems.org/gems/string_helpers